fiction-expo-social-auth. Please use the new package for social media authentication.**
Note: This package is deprecated in favor ofNot 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 ground -
google
: initiates login with google -
facebook
: initiates login with Facebook -
apple
: initiates login with Apple -
logout
: 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.