diff --git a/package.json b/package.json index 87420ab..3762883 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kettlespace-eng/expo-keycloak", - "version": "1.0.32", + "version": "1.0.33", "description": "Keycloak authentication for react-native apps using Expo.", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/src/KeycloakProvider.tsx b/src/KeycloakProvider.tsx index e8f98fe..c0c7057 100644 --- a/src/KeycloakProvider.tsx +++ b/src/KeycloakProvider.tsx @@ -1,7 +1,7 @@ import React, { FC, useCallback, useEffect, useRef, useState } from 'react'; import { Platform } from 'react-native'; import * as AuthSession from 'expo-auth-session'; -import * as WebBrowser from 'expo-web-browser'; +// import * as WebBrowser from 'expo-web-browser'; import { AuthRequestConfig } from 'expo-auth-session/src/AuthRequest.types'; @@ -125,10 +125,10 @@ export const KeycloakProvider: FC = ({ const redirectUrl = AuthSession.makeRedirectUri({ useProxy: false }); - await WebBrowser.openAuthSessionAsync( - `${discovery?.endSessionEndpoint}?redirect_uri=${redirectUrl}`, - redirectUrl, - ); + // await WebBrowser.openAuthSessionAsync( + // `${discovery?.endSessionEndpoint}?redirect_uri=${redirectUrl}`, + // redirectUrl, + // ); await removeTokens(); setSession((prev) => ({ ...prev, exists: false }));