Skip to content

Commit cf4f233

Browse files
authored
Merge pull request #61 from SolidOS/redirectUrl
remove hash from redirectUrl
2 parents 2ffd297 + d3c42dc commit cf4f233

3 files changed

Lines changed: 57 additions & 55 deletions

File tree

package-lock.json

Lines changed: 52 additions & 52 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
"typescript": "^4.9.5"
4343
},
4444
"dependencies": {
45-
"@inrupt/solid-client-authn-browser": "^1.13.2",
46-
"rdflib": "^2.2.27",
45+
"@inrupt/solid-client-authn-browser": "^1.13.4",
46+
"rdflib": "^2.2.30",
4747
"solid-namespace": "^0.5.2"
4848
}
4949
}

src/authn/SolidAuthnLogic.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,12 @@ export class SolidAuthnLogic implements AuthnLogic {
4747
/**
4848
* Handle a successful authentication redirect
4949
*/
50+
const redirectUrl = new URL(window.location.href)
51+
redirectUrl.hash = ''
5052
await this.session
5153
.handleIncomingRedirect({
5254
restorePreviousSession: true,
53-
url: window.location.href
55+
url: redirectUrl.href
5456
})
5557

5658
// Check to see if a hash was stored in local storage

0 commit comments

Comments
 (0)