This commit is contained in:
@@ -22,7 +22,15 @@ export interface AuthCode {
|
||||
}
|
||||
|
||||
const redirect_uri = location.origin + location.pathname
|
||||
const proxy_uri = new URL('/oauth2/token', import.meta.url)
|
||||
let proxy_uri = new URL('/oauth2/token', import.meta.url)
|
||||
|
||||
/**
|
||||
* Changes the origin used for proxying oauth requests
|
||||
* Required when using this as an npm module
|
||||
*/
|
||||
export function setProxyOrigin(proxy_origin: string) {
|
||||
proxy_uri = new URL('/oauth2/token', proxy_origin)
|
||||
}
|
||||
|
||||
/**
|
||||
* Timestamp and return the token
|
||||
|
||||
Reference in New Issue
Block a user