Creepwood
12/21/2022, 6:59 PMnkshah2
12/22/2022, 4:28 AMsupertokens-auth-react
SDK. If you want to build it entirely custom you should use the supertokens-web-js
SDK.EmailVerification.sendVerificationEmail()
This will trigger an email to the user, it will use the currently active session to determine the user's information
2. Verify the email on your frontend
When the user clicks on the link in the email they will be redirected to your frontend with the verification token in the URL
EmailVerification.verifyEmail()
This will read the token from the URL and verify the user's emailCreepwood
12/22/2022, 1:02 PMconst [searchParams, setSearchParams] = useSearchParams();
and searchParams.forEach((key, value) => {params.push([key, value]);});
it worked.
I was searching for a solution to pass the token to the verifyEmail()
method... but than found in a changelog, that it was changed and now works automatically.nkshah2
12/23/2022, 3:44 AM