1.0.6 • Published 5 months ago

fiction-expo-clerk-auth v1.0.6

Weekly downloads
-
License
ISC
Repository
-
Last release
5 months ago

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:

  1. Install the package by running the following command:

    npm install fiction-expo-clerk-auth
  2. Import ExpoFictionClerkAuth in your code:

    import ExpoFictionClerkAuth from 'fiction-expo-clerk-auth';
  3. 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"
    />
  4. 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.

1.0.6

5 months ago

1.0.5

5 months ago

1.0.4

5 months ago

1.0.3

6 months ago

1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago