Skip to content

How to verify an invited user? #45

Open
@natatat

Description

@natatat

such as in the case that the url contains #invite_token=token.

I see this in the documentation:

  • verifyToken()
    • consumes & verifies TokenParam based on the type and tries to retrieve a valid user object
    • devs duty to show password field to afterwards call signupUser(user.email, newPassword)

but can't figure out how to implement this.

when I use

const { param: { token, type }, verifyToken } = useIdentityContext();

token and type are defined as they should be, but calling verifyToken() gives me this error:

Uncaught (in promise) JSONHTTPError: Verify requires a verification type

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions