Skip to content

docs: [SDK-5844] cache the identity before Login With Profile - #79

Open
fadi-george wants to merge 1 commit into
mainfrom
fadi/sdk-5844
Open

fadi-george wants to merge 1 commit into
mainfrom
fadi/sdk-5844

Conversation

@fadi-george

Copy link
Copy Markdown
Contributor

Description

Follow-up to #76 from review on OneSignal/OneSignal-Android-SDK#2860.

Details

OneSignal.login(externalId, profile, jwt) returns only after the user switch, so the user-state observer fetches the user before the demo has cached the new external ID and JWT. On Identity Verification apps that fetch fails from anonymous, or loads the previous user on a switch.

The spec now says to cache the identity and clear the user lists before calling it, restore the previous identity if the login fails without switching users, and refetch once it returns. One line in demo/build.md; no breaking changes.

🤖 Generated with Claude Code

The composite login returns only after the user switch, so the user-state
observer fetches before it does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@fadi-george
fadi-george requested a review from a team as a code owner December 1, 2026 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant