Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/daniel-le97/auth0-react-socket
https://github.com/daniel-le97/auth0-react-socket
Last synced: 24 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/daniel-le97/auth0-react-socket
- Owner: daniel-le97
- License: mit
- Created: 2024-07-27T03:51:54.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-07-29T20:26:22.000Z (5 months ago)
- Last Synced: 2024-12-09T14:57:44.125Z (about 1 month ago)
- Language: TypeScript
- Size: 231 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# React + Socket + Auth0
this projects application_protocol in socket.ini is "com.socket-auth"
currently if there is a period (".") in application_protocol, only safari seems to be able to open it, as such i had to set my default browser to safari to test this
## prerequisites
1. create a native application in Auth0 dashboard
- allowed callback urls: com.socket-auth://callback
- allowed logout urls: com.socket-auth://signout
- allowed origins: socket://com.socket-auth/
2. add client id, domain and callback uri to .env.example where applicable and then rename to .env## getting started
install dependencies
```
bun i
pnpm i
npm i
```run the app
```
ssc build -r
```## how it works
please check ./src/lib/onApplicationURLEvent.ts and both pages in ./src/pagesto learn how to implement this yourself