fdk-accounts
You are reading an outdated document
Get the latest developer guides on Fynd Partners Help
This action component is used to get the user’s account related information including is user logged in or not, user name and other details including email, number, etc.
Props
Key | Type | Description | Payload |
---|---|---|---|
user_data | object | grimlock user related data including the name, contact info. etc. | |
is_logged_in | boolean | is the user logged in to the application or not | |
openLogin | function | handler to open the grimlock login page | |
openRegister | function | handler to open register page | |
openForgotPassword | function | handler to open forgot password page | |
openHomePage | function | handler to open home page | |
updateProfile | function | Edit the user profile | {first_name,email,gender,last_name,mobile,register_token} |
signOut | function | handler to Logout from application | |
signIn | function | login user with username/mobile and password | {is_redirection,password,username} |
sendOtp | function | send otp to user login with mobile otp | {mobile,country_code} |
resendOtp | function | resend otp to user login with mobile otp | {mobile,country_code,token,action} |
signInWithOtp | function | signin the user login with mobile otp | {is_redirection,request_id,otp} |
signUp | function | register user to application | {first_name,last_name,gender,email,phone,password,register_token} |
setPassword | function | set new password to registered user | {password,code} |
sendResetPasswordEmail | function | send forgot password email to user email id | {email,captcha_code} |
resendVerifyMobileOtp | function | resend the registered user mobile otp | {mobile,country_code,token,action} |
resendVerifyEmailOtp | function | resend the registered user email otp | {email,register_token,token,action} |
verifyMobileOtp | function | verify the registered user mobile otp | {request_id,register_token,otp,is_email_verified,is_redirection} |
verifyEmailOtp | function | verify the registered user email otp | {otp,email,register_token,action,is_mobile_verified,is_redirection} |
function | login user with facebook as social login | ||
function | login user with google as social login | ||
Example
you can use this action component taking the reference from following code block:
<fdk-accounts>
<template slot-scope="accountsData">
<div
v-if="!accountsData.is_logged_in"
@click="accountsData.openLogin"
>
//user code
</div>
</template>
</fdk-accounts>