Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add the expo web platform support #22

Merged
merged 6 commits into from
Apr 19, 2024

Conversation

simeng-li
Copy link
Contributor

Summary

Add the expo web platform support, including the following major updates

  • update the sample project to support expo web development
  • add a new BrowserStorage (forked from @logto/browser SDK) to support web-based storage. As expo-secure-store only support native platforms.
  • add the maybeCompleteAuthSession() listener to the useLogto hook. This will redirect user from a popUp window back the web app.

Testing

test locally

image

Checklist

  • .changeset
  • unit tests
  • integration tests
  • necessary TSDoc comments

- add the browser storeage
- add the expo-web-browser signIn callback listener
update readme
fix readme typo
packages/rn-sample/App.tsx Show resolved Hide resolved
packages/rn/src/storage.ts Show resolved Hide resolved
add some comments
update comments
@simeng-li simeng-li enabled auto-merge (squash) April 19, 2024 07:20
@simeng-li simeng-li merged commit 054d4e9 into master Apr 19, 2024
2 checks passed
@simeng-li simeng-li deleted the simeng-add-expo-web-support branch April 19, 2024 07:20
@CatStudioApp
Copy link

great work! this is really what I need!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants