Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Releases: Swizec/useAuth

v2.0.0

15 Dec 17:14

Choose a tag to compare

Makes it possible to install just the auth library you're using 🎉

This is a breaking change with imports, which necessitates v2.
Functionality remains the same.

Docs have been updated. You now import like this:

import{Auth0}from"react-use-auth/auth0"// orimport{NetlifyIdentity}from"react-use-auth/netlify-identity"
Assets2
Loading

v1.0.0 multiple auth provider support 🎉

05 Dec 17:32

Choose a tag to compare

🥳 useAuth now supports multiple auth providers 🥳

THE question everyone's been asking: Can I use anything other than Auth0? Now you can!

Starting with Auth0 and Netlify Identity. Fully backwards compatible so upgrading to v1.0.0, you don't have to change anything.

New configuration support

<AuthProvider> is deprecated. We now have<AuthConfig>

Render anywhere in your tree, ideally close to the top, and useAuth handles the rest. We're now using XState behind the scenes – no more context providers. AuthConfig is not a wrapper, but can be if you prefer.

image

image

Multiple auth providers

An abstraction layer provides an interface to deal with different providers. Add a new wrapper tosrc/providers/* and we can support new providers.

Tested with Netlify Identity and Auth0 so far. Docs for creating new wrappers coming soon.

The goal is to add every popular auth provider.

Loading

[8]ページ先頭

©2009-2025 Movatter.jp