AppmakerDeveloper

useUser

The current user, plus functions to register and log in.

NametypeDescriptionparams
userObjectCurrent logged in user data
registerFunctionfunction to register user(email, phone, first_name, last_name, password, accepts_marketing, agree_terms )
loginFunctionFunction to login user.( username, password )
loginViaGoogleFunctionLogin User via Google provider.
loginLoadingStatusbooleanKey show loading in UI
isLoggedinbooleanKey to check if user is logged in

Example

const { isLoggedin } = useUser();

On this page