Skip to content

Commit 9c8fb03

Browse files
committed
access_token need not be first parameter.
Fixes #80.
1 parent 60006e5 commit 9c8fb03

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/webid-oidc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export async function currentSession(
3434
return null
3535
}
3636
const url = currentUrl()
37-
if (!url || !url.includes('#access_token=')) {
37+
if (!/#(.*&)?access_token=/.test(url)) {
3838
return null
3939
}
4040
const storeData = await getData(storage)

0 commit comments

Comments
 (0)