Skip to content

Commit 8d92db4

Browse files
committed
support target preloading
1 parent cb2b816 commit 8d92db4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

router.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,9 @@ func authHandler(req events.Request) (events.Response, error) {
102102
return success(req, sess)
103103
}
104104

105-
sess.Target = req.QueryStringParameters["redirect"]
105+
if sess.Target == "" {
106+
sess.Target = req.QueryStringParameters["redirect"]
107+
}
106108

107109
err = sess.SetNonce()
108110
if err != nil {

0 commit comments

Comments
 (0)