nhost

The Open Source Firebase Alternative with GraphQL.

MIT License

Downloads
67.3K
Stars
7.9K
Committers
89

Bot releases are visible (Hide)

nhost - @nhost/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

  • 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]

nhost - @nhost/[email protected]

Published by github-actions[bot] over 2 years ago

Minor Changes

  • 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>
    }
    
    

Patch Changes

  • 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.

nhost - @nhost/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

nhost - @nhost/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

nhost - @nhost/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

nhost - @nhost/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

nhost - @nhost/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

nhost - @nhost/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

  • 6be3758: bug: Correct OAuth provider link.
nhost - @nhost/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

nhost - @nhost/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

nhost - @nhost/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

nhost - @nhost/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

nhost - @nhost/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

  • correct dependencies

    See this related issues:

nhost - @nhost/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

nhost - @nhost/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

nhost - @nhost/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

nhost - @nhost/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

nhost - @nhost/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

nhost - @nhost/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

  • 113beed: fix: Refetched queries and leaking subscriptions #301
  • Updated dependencies [4420c0e]
nhost - @nhost/[email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

  • 4420c0e: Check if window.location exists

    When using Expo, window can be an object while window.location is undefined. It lead to this issue.

Package Rankings
Top 1.38% on Npmjs.org
Related Projects