Skip to content

Commit 7a4c6fa

Browse files
committed
use path, not query param
1 parent 8568f23 commit 7a4c6fa

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

internal/auth/workos.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ func GetAuthUrlForTokenPage() string {
125125
params.Add("response_type", "code")
126126
params.Add("client_id", viper.GetString("workos_client_id"))
127127

128-
redirectPath := "tokens/callback?clientName=rules"
128+
redirectPath := "tokens/callback/rules"
129129
params.Add("redirect_uri", fmt.Sprintf("%s%s", viper.GetString("app_url"), redirectPath))
130130

131131
params.Add("state", uuid.New().String())

tests/golden/login/login.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Starting login process...
22

33
Starting authentication with Continue...
4-
Opening browser to sign in at: https://api.workos.com/user_management/authorize?client_id=client_01J0FW6XN8N2XJAECF7NE0Y65J&provider=authkit&redirect_uri=https%3A%2F%2Fhub.continue.dev%2Ftokens%2Fcallback%3FclientName%3Drules&response_type=code&state=<STATE_PLACEHOLDER>
4+
Opening browser to sign in at: https://api.workos.com/user_management/authorize?client_id=client_01J0FW6XN8N2XJAECF7NE0Y65J&provider=authkit&redirect_uri=https%3A%2F%2Fhub.continue.dev%2Ftokens%2Fcallback%2Frules&response_type=code&state=<STATE_PLACEHOLDER>
55

66
After signing in, you'll receive a token.
77
Paste your sign-in token here: Login failed: <ERROR_PLACEHOLDER>

0 commit comments

Comments
 (0)