react-netlify-identity icon indicating copy to clipboard operation
react-netlify-identity copied to clipboard

How to verify an invited user?

Open natatat opened this issue 3 years ago • 2 comments

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

natatat avatar Jun 01 '21 22:06 natatat

Did you find a solve for this? I have the exact same issue.

arnars avatar Feb 28 '22 18:02 arnars

Same exact issue here. No matter what I try I cannot get the confirmation link that gets sent to me to work. Has anyone found a solution for this?

cmarabate avatar Jan 25 '23 20:01 cmarabate