empty promise to keep client from busying browser during redirect
This commit is contained in:
@@ -84,6 +84,7 @@ export function requestAuthCode(client_id, ...scopes) {
|
||||
url.searchParams.append('client_id', client_id)
|
||||
url.searchParams.append('scope', scopes.join(' '))
|
||||
location.assign(url+'&redirect_uri='+redirect_uri)
|
||||
return new Promise()
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user