We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a8efa1 commit 02a1d88Copy full SHA for 02a1d88
src/user.ts
@@ -18,15 +18,17 @@ export async function initUser() {
18
}
19
20
export async function login(){
21
- const url = new URL(window.location.toString())
22
- url.pathname = '/logged_in.html'
23
-
24
- new IAOauth('yio57t9r9tsgmmf')
+ const re = new IAOauth('yio57t9r9tsgmmf')
25
.addScope("user:read")
26
.addScope("pastefy|pastes")
27
.addScope("pastefy|folders")
28
.addScope("pastefy|notifications")
29
.setState(window.location.toString())
30
- .setRedirect(url.toString())
+
+ const url = new URL(window.location.toString())
+ url.pathname = '/logged_in.html'
+ url.search = ''
31
+ url.hash = ''
32
+ re.setRedirect(url.toString())
33
.open()
34
0 commit comments