Skip to content

Commit 9f09823

Browse files
committed
feat: add redirect_uri for signup
1 parent 99b8468 commit 9f09823

File tree

3 files changed

+19
-16
lines changed

3 files changed

+19
-16
lines changed

app/package-lock.json

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"author": "Lakhan Samani",
1212
"license": "ISC",
1313
"dependencies": {
14-
"@authorizerdev/authorizer-react": "0.10.0",
14+
"@authorizerdev/authorizer-react": "0.11.0",
1515
"@types/react": "^17.0.15",
1616
"@types/react-dom": "^17.0.9",
1717
"esbuild": "^0.12.17",

server/resolvers/signup.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,9 @@ func SignupResolver(ctx context.Context, params model.SignUpInput) (*model.AuthR
129129
}
130130
verificationType := constants.VerificationTypeBasicAuthSignup
131131
redirectURL := utils.GetAppURL(gc)
132+
if params.RedirectURI != nil {
133+
redirectURL = *params.RedirectURI
134+
}
132135
verificationToken, err := token.CreateVerificationToken(params.Email, verificationType, hostname, nonceHash, redirectURL)
133136
if err != nil {
134137
return res, err

0 commit comments

Comments
 (0)