1.0.6 • Published 5 months 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-auth
Import
ExpoFictionClerkAuth
in your code:import ExpoFictionClerkAuth from 'fiction-expo-clerk-auth';
Use
ExpoFictionClerkAuth
component 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
clicked
with 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.