Skip to content

Commit 564f955

Browse files
committed
changed magiclinks back to magic-links
1 parent 3d89cae commit 564f955

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/components/MagicLinkSent.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const MagicLinkSent: React.FC = () => {
3232
const resend = async () => {
3333
if (cooldown > 0) return;
3434

35-
await fetchWithAuth(`/magiclinks`, {
35+
await fetchWithAuth(`/magic-links`, {
3636
method: 'GET',
3737
headers: {
3838
'Content-Type': 'application/json',
@@ -47,7 +47,7 @@ const MagicLinkSent: React.FC = () => {
4747

4848
channel.onmessage = async event => {
4949
if (event.data?.type === 'MAGIC_LINK_AUTH_SUCCESS') {
50-
const response = await fetchWithAuth(`/magiclinks/check`, {
50+
const response = await fetchWithAuth(`/magic-links/check`, {
5151
method: 'GET',
5252
headers: {
5353
'Content-Type': 'application/json',
@@ -68,7 +68,7 @@ const MagicLinkSent: React.FC = () => {
6868
useEffect(() => {
6969
const interval = setInterval(async () => {
7070
try {
71-
const response = await fetchWithAuth(`/magiclinks/check`, {
71+
const response = await fetchWithAuth(`/magic-links/check`, {
7272
method: 'GET',
7373
headers: {
7474
'Content-Type': 'application/json',

src/views/Login.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ const Login: React.FC = () => {
141141

142142
const sendMagicLink = async () => {
143143
try {
144-
const response = await fetchWithAuth(`/magiclinks`, {
144+
const response = await fetchWithAuth(`/magic-links`, {
145145
method: 'GET',
146146
});
147147

@@ -150,7 +150,7 @@ const Login: React.FC = () => {
150150
return;
151151
}
152152

153-
navigate('/magiclinks-sent');
153+
navigate('/magic-links-sent');
154154
} catch (err) {
155155
console.error(err);
156156
setFormErrors('Failed to send magic link.');

src/views/VerifyMagicLink.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const VerifyMagicLink: React.FC = () => {
2121

2222
useEffect(() => {
2323
const verify = async () => {
24-
const response = await fetchWithAuth(`/magiclinks/verify/${token}`, {
24+
const response = await fetchWithAuth(`/magic-links/verify/${token}`, {
2525
method: 'GET',
2626
headers: {
2727
'Content-Type': 'application/json',

0 commit comments

Comments
 (0)