react-netlify-identity
react-netlify-identity copied to clipboard
How to verify an invited user?
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
Did you find a solve for this? I have the exact same issue.
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?