Swizec / useAuth

The simplest way to add authentication to your React app. Supports various providers.
https://useauth.dev
MIT License
2.6k stars 107 forks source link

How supportive is this library of using it without auth0 #102

Open CR1AT0RS opened 3 years ago

CR1AT0RS commented 3 years ago

Hey,

I have custom auth via rails. Do you think this integration will work? This is not a bug but more of an enhancement questions. If this library can be used independently without auth0.

I do see that I can just provide any endpoints I wish in the config but not sure if someone already tried that and there are some specifics that are only going to work if auth0 is used.

Swizec commented 3 years ago

Good news! With v1.0.0 useAuth now explicitly supports multiple authentication providers :)

I'm writing docs on how to create a wrapper for custom auth solutions like your Rails backend.

Swizec commented 3 years ago

@CR1AT0RS support for multiple providers is now fully baked in v2. There's documentation on how to add new providers: https://useauth.dev/docs/auth-providers

I started with Auth0 and NetlifyIdentity as proof of concept that the wrapper layer works. Contributions welcome :)

Jared-Dev commented 3 years ago

@Swizec mildly related, but where are the docs stored? I was going to pr an issue with them but so far they have eluded me.

Swizec commented 3 years ago

@Jared-Dev this is the docs site https://github.com/Swizec/useAuth/tree/master/examples/useAuth.dev

Maybe shouldn't be hiding in the examples folder 🤔