File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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' ,
Original file line number Diff line number Diff 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.' ) ;
Original file line number Diff line number Diff 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' ,
You can’t perform that action at this time.
0 commit comments