Skip to content

Commit

Permalink
fix: link
Browse files Browse the repository at this point in the history
  • Loading branch information
esaminu committed Aug 23, 2023
1 parent e75c16a commit a958997
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/AddDevice/AddDevice.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const handleCreateAccount = async ({

await sendSignInLinkToEmail(firebaseAuth, email, {
url: encodeURI(
`${window.location.origin}${basePath ? `${basePath}/` : ''}/auth-callback?${searchParams.toString()}`,
`${window.location.origin}${basePath ? `/${basePath}` : ''}/auth-callback?${searchParams.toString()}`,
),
handleCodeInApp: true,
});
Expand Down
2 changes: 1 addition & 1 deletion src/components/VerifyEmail/verify-email.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function VerifyEmailPage() {

try {
await sendSignInLinkToEmail(firebaseAuth, email as string, {
url: `${window.location.origin}${basePath ? `${basePath}/` : ''}/auth-callback?${searchParams.toString()}`,
url: `${window.location.origin}${basePath ? `/${basePath}` : ''}/auth-callback?${searchParams.toString()}`,
handleCodeInApp: true,
});
openToast({
Expand Down

0 comments on commit a958997

Please sign in to comment.