mirror of
https://github.com/myfatemi04/wheelshare-frontend.git
synced 2025-05-02 07:59:51 -04:00
Fix redirect url
This commit is contained in:
parent
62633aed17
commit
7ce134377f
|
@ -9,7 +9,9 @@ function createAuthorizationEndpoint(redirectUrl: string) {
|
|||
return url.toString();
|
||||
}
|
||||
|
||||
const redirectUrl = `${window.location.protocol}://${window.location.host}/auth/ion/callback`;
|
||||
// window.location.protocol is http: or https:
|
||||
// window.location.host is localhost:3000 or wheelshare-frontend.vercel.app
|
||||
const redirectUrl = `${window.location.protocol}//${window.location.host}/auth/ion/callback`;
|
||||
const authorizationEndpoint = createAuthorizationEndpoint(redirectUrl);
|
||||
|
||||
export default authorizationEndpoint;
|
||||
|
|
Loading…
Reference in New Issue
Block a user