feat: add redirect_uri for signup

This commit is contained in:
Lakhan Samani
2022-03-16 21:52:45 +05:30
parent 99b846811a
commit 9f09823c8b
3 changed files with 19 additions and 16 deletions

View File

@@ -129,6 +129,9 @@ func SignupResolver(ctx context.Context, params model.SignUpInput) (*model.AuthR
}
verificationType := constants.VerificationTypeBasicAuthSignup
redirectURL := utils.GetAppURL(gc)
if params.RedirectURI != nil {
redirectURL = *params.RedirectURI
}
verificationToken, err := token.CreateVerificationToken(params.Email, verificationType, hostname, nonceHash, redirectURL)
if err != nil {
return res, err