Skip to content

bug: Can't sync Logto client with tokens got by Experience API #60

@david-shiko

Description

@david-shiko

Describe the bug

Hello!

I successfully logged in via the Experience API and obtained all the tokens: access token, refresh token, ID token, etc.

Required behavior: Logto SDK usage should work the same as after a regular login, especially for token refreshing.

Problem:
I explored the internal Logto React Native SDK code and manually injected tokens into the Logto store, and set the global Logto state flag to true to imitate this behavior, but it's still not behaving as expected.

Is there a way to make the SDK recognize an already authenticated session from an Experience API flow?

P.S. Original question — probably discussions are the wrong place for questions about the SDK :)
https://github.com/orgs/logto-io/discussions/8490

Expected behavior

Required behavior: Logto SDK usage should work the same as after a regular login, especially for token refreshing.

How to reproduce?

login in via the Experience API

Environment

Logto Cloud

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions