Skip to content

Commit 8e11ed1

Browse files
committed
Fix magic login
1 parent aa7de2f commit 8e11ed1

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ testing-project
44
# poetry.lock
55
dev-link/
66

7-
.DS_STORE
7+
.DS_Store

{{cookiecutter.project_slug}}/frontend/app/components/Footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import Link from "next/link"
44

5-
const siteName: string = "common.title"
5+
const siteName: string = "CompanyName"
66

77
const githubIcon = () => {
88
return (

{{cookiecutter.project_slug}}/frontend/app/lib/slices/tokensSlice.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,11 @@ export const getTokens = (payload: { username: string; password?: string }) => {
5252
}
5353
} else {
5454
const response = await apiAuth.loginWithMagicLink(payload.username)
55-
dispatch(setMagicToken(response))
55+
if (response.claim) {
56+
dispatch(setMagicToken(response))
57+
} else {
58+
throw "error"
59+
}
5660
}
5761
} catch (error) {
5862
dispatch(

{{cookiecutter.project_slug}}/frontend/next.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ module.exports = {
88
},
99
],
1010
},
11-
output: 'standalone'
11+
output: "standalone",
1212
}

0 commit comments

Comments
 (0)