Skip to content

Commit

Permalink
not required for kc logout
Browse files Browse the repository at this point in the history
kc has no revocation endpoints
  • Loading branch information
rodocite committed Jun 6, 2021
1 parent d889a88 commit 35134f3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
10 changes: 5 additions & 5 deletions src/KeycloakProvider.tsx
Original file line number Diff line number Diff line change
@@ -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';

Expand Down Expand Up @@ -125,10 +125,10 @@ export const KeycloakProvider: FC<IKeycloakConfiguration> = ({

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 }));
Expand Down

0 comments on commit 35134f3

Please sign in to comment.