Skip to content

Commit

Permalink
get authorization url from openid config endpoint (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
rohanharikr authored Jun 17, 2024
1 parent 4e981de commit 5da682f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -306,12 +306,10 @@
}
if(iss) {
try {
const issUrl = new URL(iss)
const parts = issUrl.hostname.split('.');
parts.shift();
const domain = parts.join('.');
const res = await fetch(iss + '/.well-known/openid-configuration')
const { authorization_endpoint } = await res.json();
let _requestUrl = makeRequestURL(
'https://wallet.' + domain,
authorization_endpoint,
states.scopes,
states.query_params,
"request"
Expand Down

0 comments on commit 5da682f

Please sign in to comment.