Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```