From 8222ee198a0ab10570e8b4c31ffb2aeafef86392 Mon Sep 17 00:00:00 2001 From: Fizal Sarif Date: Mon, 12 Aug 2024 19:51:08 -0400 Subject: [PATCH] fix: Correct typo in GoTrueClient warning message (#938) ## What kind of change does this PR introduce? This PR corrects the spelling of `clock` in a warning message in `GoTrueClient.ts`. ## What is the current behavior? ``` @supabase_supabase-js.js?v=12ace510:5329 @supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clok for skew ``` ## What is the new behavior? ``` @supabase_supabase-js.js?v=12ace510:5329 @supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew ``` ## Additional context ![image](https://github.com/user-attachments/assets/e25b10cc-93e1-48e0-9881-a31ede7b07ef) --- src/GoTrueClient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GoTrueClient.ts b/src/GoTrueClient.ts index 3d94fe562..fcbb71252 100644 --- a/src/GoTrueClient.ts +++ b/src/GoTrueClient.ts @@ -1465,7 +1465,7 @@ export default class GoTrueClient { ) } else if (timeNow - issuedAt < 0) { console.warn( - '@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clok for skew', + '@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew', issuedAt, expiresAt, timeNow