Skip to content

feature request: access logoto client from outside react context #993

@Pagebakers

Description

@Pagebakers

What problem did you meet?

We're using the react package, but due to the nature of our setup with Tanstack Start, we can't get access to the auth client in our router context.

Describe what you'd like Logto to have

To resolve this we'd like to propose a little change to make the setup more flexible by allowing to pass a logto client instance to the LogtoProvider instead of initializing it internally.

const client = new  LogtoClient()

<LogtoProvider client={client}>

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions