The Open Source Firebase Alternative with GraphQL.
MIT License
Bot releases are visible (Hide)
Published by github-actions[bot] over 2 years ago
058956b: Add missing provider types
strava
, gitlab
, and bitbucket
were missing from the list of providers in Typescript and are now available.
058956b: Add emailVerified
, phoneNumber
, phoneNumberVerified
, and activeMfaType
to User type
Some information is missing in the User
payload (see this issue). The above properties have been added in the Typescript User
type and are available when using Hasura Auth versions from this pull request (tentative version number: 0.5.1
)
Updated dependencies [058956b]
Updated dependencies [7cf875f]
Published by github-actions[bot] over 2 years ago
7135aee: Add user and accessToken to authentication hooks
Hooks that can complete a successful authentication now have two additional user
and accessToken
exported states:
useSignInEmailPassword
useSignInAnonymous
useSignUpEmailPassword
587eaff: Return a promise with the current context to hooks actions
It is now possible to get the result of an action. Hook handlers return the action context in a promise.
const { signInEmailPasswordless, isError } = useSignInEmailPasswordless()
const MyComponent = () => {
return <div>
<button onClick={async () => {
const { isSuccess, isError, error } = await signInEmailPasswordless('[email protected]')
if (isError) {
console.log(error)
}}}/>
{isError && <div>an error occurred</div>}
<div>
}
7cf875f: Deprecate the use of values sent as hook parameters
Although handlers parameters of authentication hooks can be given when creating the hook, it is recommended to use them when executing the handler. For instance, instead of:
const { signInEmailPasswordless } = useSignInEmailPasswordless('[email protected]')
signInEmailPasswordless()
It is recommended to use the following syntax:
const { signInEmailPasswordless } = useSignInEmailPasswordless()
signInEmailPasswordless('[email protected]')
No breaking change has been introduced. For instance, useSignUpEmailPassword('[email protected]','1234', options)
will appear as deprecated but will work, while useSignUpEmailPassword(options)
will work too.
Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
correct dependencies
See this related issues:
Updated dependencies
Published by github-actions[bot] over 2 years ago
correct dependencies
See this related issues:
Updated dependencies
Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
correct dependencies
See this related issues:
Updated dependencies
Published by github-actions[bot] over 2 years ago
correct dependencies
See this related issues:
Updated dependencies
Published by github-actions[bot] over 2 years ago
correct dependencies
See this related issues:
Updated dependencies
Published by github-actions[bot] over 2 years ago
correct dependencies
See this related issues:
Updated dependencies
Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
4420c0e: Check if window.location
exists
When using Expo, window
can be an object while window.location
is undefined
. It lead to this issue.