Skip to content

Commit

Permalink
format: npm run format:fix
Browse files Browse the repository at this point in the history
  • Loading branch information
arata-nvm committed Mar 4, 2024
1 parent 30070c5 commit c5f23d3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/ui/url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,10 @@ export const openUrl = (url: string) => {
};

export const getAppUrl = () => {
return import.meta.env.VITE_APP_URL ?? "https://app.twinte.net"
return import.meta.env.VITE_APP_URL ?? "https://app.twinte.net";
};

export const getLoginUrl = (
provider: Provider,
redirectUrl = getAppUrl()
) => {
export const getLoginUrl = (provider: Provider, redirectUrl = getAppUrl()) => {
return `${getAppUrl()}/auth/v3/${provider}?redirect_url=${redirectUrl}`;
};

Expand Down

0 comments on commit c5f23d3

Please sign in to comment.