@@ -4,7 +4,7 @@ import { useEffect } from "react";
44import {
55 getDefaultNextPathByType ,
66 isSupportedEmailAuthType ,
7- normalizeNextPath ,
7+ normaliseNextPath ,
88} from "@/utils/authRedirects" ;
99
1010const INVALID_LINK_MESSAGE =
@@ -37,7 +37,7 @@ export default function AuthHashCompletion() {
3737 queryParams . get ( "next" ) ?? queryParams . get ( "redirect_to" ) ;
3838 const requestedType = queryParams . get ( "type" ) ?? hashType ;
3939 const defaultNextPath = getDefaultNextPathByType ( requestedType ) ;
40- const nextPath = normalizeNextPath ( preferredNextPath , defaultNextPath ) ;
40+ const nextPath = normaliseNextPath ( preferredNextPath , defaultNextPath ) ;
4141
4242 const authCode = queryParams . get ( "code" ) ;
4343 const hasAuthHashPayload =
@@ -126,7 +126,7 @@ export default function AuthHashCompletion() {
126126 return ;
127127 }
128128
129- const typedNextPath = normalizeNextPath (
129+ const typedNextPath = normaliseNextPath (
130130 preferredNextPath ,
131131 getDefaultNextPathByType ( type )
132132 ) ;
@@ -177,7 +177,7 @@ export default function AuthHashCompletion() {
177177 return ;
178178 }
179179
180- const resolvedNextPath = normalizeNextPath ( data . next , typedNextPath ) ;
180+ const resolvedNextPath = normaliseNextPath ( data . next , typedNextPath ) ;
181181 debugAuth ( "session-finalized" , {
182182 type,
183183 nextPath : resolvedNextPath ,
0 commit comments