supertokens / supertokens-auth-react

ReactJS authentication module for SuperTokens
https://supertokens.com
Other
260 stars 81 forks source link

feat: SessionAuth SSR support (initialSessionAuthContext) #789

Closed sasha240100 closed 5 months ago

sasha240100 commented 5 months ago

Summary of change

Adds initialSessionAuthContext support for SessionAuth component. initialSessionAuthContext is an initial state that Session provider uses to create a context.

Related issues

Test Plan

Tested locally on a NextJS implementation using supertokens. Tested scenarios include:

Documentation changes

TODO.

(If relevant, please create a PR in our docs repo, or create a checklist here highlighting the necessary changes)

Checklist for important updates

Remaining TODOs for this PR