FormidableLabs / FormidableLabs/react-native-app-auth

No identifiable impact from clicking agree

Open
#838 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.3k
Forks
473
PR merge metrics
No merged PRs in 30d

Description

## Issue
I've implemented this library and am testing it out with spotify authorization. The function successfully generates a popup browser window that asks if I agree to allow my app to read my spotify account's data. However, once I click agree and the window closes, nothing happens. I've tried a few solutions => 1) modifying my redirect uri to mimic really https redirect's capability of passing dynamic parameters, 2) modifying my app delegate.m file's openURL method, 3) simply using .then instead of await to see if that would log anything (neither implementation logs any result).

The only way I've been able to successfully log the result is by setting my redirect uri to be my local server's ip address followed by an endpoint, though this does not close the window automatically, and seems like a futile strategy if I don't find some follow-up event cue by which I can tell the client (my react native app itself, not the browser window) that the code exists on the server for it to grab.

I suspect that ignorance of some aspect of react native linking/uri schemes, is the issue, but information on this is scarce (GPT is struggling to give me recommendations for what it's worth). Any suggestions on resolving this, even if it pertains to the server workaround, would be greatly appreciated.
---

## Environment

* **Your Identity Provider**: `Spotify`
* **Platform that you're experiencing the issue on**: `ios`
* **Are you using Expo?** no, but I use some expo modules.

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.