Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/appwrite-community/appwrite-custom-token-auth-demo
Appwrite custom token auth demo
https://github.com/appwrite-community/appwrite-custom-token-auth-demo
appwrite appwrite-auth auth sveltekit
Last synced: 8 days ago
JSON representation
Appwrite custom token auth demo
- Host: GitHub
- URL: https://github.com/appwrite-community/appwrite-custom-token-auth-demo
- Owner: appwrite-community
- Created: 2024-05-22T17:59:37.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-05-28T19:23:09.000Z (7 months ago)
- Last Synced: 2024-12-10T10:41:46.671Z (14 days ago)
- Topics: appwrite, appwrite-auth, auth, sveltekit
- Language: Svelte
- Homepage:
- Size: 29.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Appwrite Custom Token Auth Demo
Demo to showcase how custom token auth works in Appwrite
https://github.com/appwrite-community/appwrite-custom-token-auth-demo/assets/31401437/8adc1616-d058-40b2-b216-8f204f4ad479
## Environment variables
This app needs the following environment variables
- `PUBLIC_APPWRITE_ENDPOINT`: Endpoint of your Appwrite project
- `PUBLIC_APPWRITE_PROJECT_ID`: Project ID of your Appwrite project
- `APPWRITE_API_KEY`: API key from your Appwrite project with the following scopes enabled: `users.read` and `users.write`## Testing the app
Once you've clone the project, installed dependencies with `npm install` and created a `.env` file with the appropriate variables, run the following command in your terminal
```sh
npm run dev
```