Skip to content

Commit

Permalink
Fixed redirect uri
Browse files Browse the repository at this point in the history
  • Loading branch information
feserm committed May 23, 2024
1 parent 80e904b commit 61db992
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/gitlab/Login.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function login() {
const params = {
response_type: 'code',
client_id: $CLIENT_ID,
redirect_uri: window.location.origin+window.location.pathname,
redirect_uri: window.location.href,
state: '123456',
scope: 'api',
code_challenge: codeChallenge,
Expand Down
2 changes: 1 addition & 1 deletion src/stores/gitlab-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export async function init() {
grant_type: 'authorization_code',
client_id: get(CLIENT_ID),
code: code,
redirect_uri: window.location.origin + window.location.pathname,
redirect_uri: window.location.href,
code_verifier: code_verifier,
}
const response = await fetch(`${base_url}/token`, {
Expand Down

0 comments on commit 61db992

Please sign in to comment.