File tree Expand file tree Collapse file tree
packages/nextjs/src/server/actions Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ const refreshToken = async (): Promise<RefreshResult> => {
9393
9494 const rawExpiresIn : string | undefined = result . tokenResponse . expiresIn ;
9595 const expiresInSeconds : number = parseInt ( rawExpiresIn ?? '' , 10 ) ;
96- if ( isNaN ( expiresInSeconds ) ) {
96+ if ( Number . isNaN ( expiresInSeconds ) ) {
9797 throw new Error ( `[refreshToken] Invalid expiresIn value received: ${ rawExpiresIn } ` ) ;
9898 }
9999 const expiresAt : number = Math . floor ( Date . now ( ) / 1000 ) + expiresInSeconds ;
Original file line number Diff line number Diff line change @@ -132,12 +132,13 @@ const signInAction = async (
132132 | undefined ;
133133 const rawExpiresIn : unknown = signInResult [ 'expiresIn' ] ?? signInResult [ 'expires_in' ] ;
134134 const expiresIn : number = Number ( rawExpiresIn ) ;
135- if ( isNaN ( expiresIn ) ) {
135+ if ( Number . isNaN ( expiresIn ) ) {
136136 throw new Error ( `[signInAction] Invalid expiresIn value received: ${ rawExpiresIn } ` ) ;
137137 }
138138 const config : AsgardeoNextConfig = await client . getConfiguration ( ) ;
139- const sessionCookieExpiryTime : number =
140- SessionManager . resolveSessionCookieExpiry ( config . sessionCookieExpiryTime ) ;
139+ const sessionCookieExpiryTime : number = SessionManager . resolveSessionCookieExpiry (
140+ config . sessionCookieExpiryTime ,
141+ ) ;
141142
142143 const sessionToken : string = await SessionManager . createSessionToken (
143144 accessToken ,
You can’t perform that action at this time.
0 commit comments