diff --git a/packages/expo/src/singleton.ts b/packages/expo/src/singleton.ts index a5962113c4..b93c7e853b 100644 --- a/packages/expo/src/singleton.ts +++ b/packages/expo/src/singleton.ts @@ -25,8 +25,8 @@ export function buildClerk({ frontendApi, tokenCache, }: BuildClerkOptions): ClerkProp { - const getToken = tokenCache ? tokenCache.getToken : getTokenFromMemory; - const saveToken = tokenCache ? tokenCache.saveToken : saveTokenInMemory; + const getToken = (tokenCache && tokenCache.getToken) ?? getTokenFromMemory; + const saveToken = (tokenCache && tokenCache.saveToken) ?? saveTokenInMemory; if (!clerk) { clerk = new Clerk(frontendApi);