1.0.6 • Published 2 years ago
fiction-expo-clerk-auth v1.0.6
Note: This package is deprecated in favor of fiction-expo-social-auth. Please use the new package for social media authentication.**
Not working in production, I'm fixing it. Fiction Expo Clerk Auth (Deprecated)
Fiction Expo Clerk Auth is a social media authentication helper developed by Fiction Developers. For more information, visit fictiondevelopers.com.
Installation
To use Fiction Expo Clerk Auth in your project, follow these steps:
Install the package by running the following command:
npm install fiction-expo-clerk-authImport
ExpoFictionClerkAuthin your code:import ExpoFictionClerkAuth from 'fiction-expo-clerk-auth';Use
ExpoFictionClerkAuthcomponent in your code:<ExpoFictionClerkAuth click={clicked} onData={(d) => { console.log("WIN WIN WIN") console.log(d) }} token="REPLACE_A_CLERK_AUTH_KEY" />Control the state of
clickedwith the following options:clear: clears the groundgoogle: initiates login with googlefacebook: initiates login with Facebookapple: initiates login with Applelogout: logsout
Make sure to clear the state before setting any other state. For example, if you want to login with Google:
setClicked('clear'); setTimeout(() => { setClicked('google'); }, 200);
For more information and usage examples, refer to the documentation.