FormidableLabs / FormidableLabs/react-native-app-auth

The issue with the "logout" function is that the popup window that opens does not close.

Open
#1,042 10 comments 0 reactions 0 assignees View on GitHub
help wanted
Dominant language
Java
Stars
2.3k
Forks
473
PR merge metrics
No merged PRs in 30d

Description

## Issue

Hello,

The callback URIs are defined in the Azure AD portal.

tr.edu.ozyegin.myozutest://oauth/redirect/
tr.edu.ozyegin.myozutest://oauth/logged_out/

For login:

When you run the following code, it opens a login window where, after entering the email and password, the automatically opened window closes successfully. There is no problem with the authorize function.

```javascript
await authorize({
issuer: 'https://login.microsoftonline.com/xxx/v2.0',
clientId: 'xxx',
redirectUrl: 'tr.edu.ozyegin.myozutest://oauth/redirect/',
scopes: ['openid', 'profile', 'email'],
iosPrefersEphemeralSession: true,
});
```

However, when logging out, the window that opens does not automatically close. There is a problem with this:

```javascript
await logout({
issuer: 'https://login.microsoftonline.com/xxx/v2.0',
clientId: 'xxx',
iosPrefersEphemeralSession: true,
}, {
idToken: 'xxx',
postLogoutRedirectUrl: 'tr.edu.ozyegin.myozutest://oauth/logged_out/',
});
```

I am sharing the video as attached.

https://github.com/user-attachments/assets/9c6b0b96-4d08-443a-af35-787d712241e3

What should I do?

---

## Environment

* **Your Identity Provider**: `Azure AD`
* **Platform that you're experiencing the issue on**: `both`
* **Your `react-native` Version**: `e.g. 0.75.4`
* **Your `react-native-app-auth` Version**: `e.g. 8.0.1`
* **Are you using Expo?**: No

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.