Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/davidbarton/pocketbase-cookie-auth-demo
Demo of cookie based authentication flow for PocketBase.
https://github.com/davidbarton/pocketbase-cookie-auth-demo
Last synced: 4 days ago
JSON representation
Demo of cookie based authentication flow for PocketBase.
- Host: GitHub
- URL: https://github.com/davidbarton/pocketbase-cookie-auth-demo
- Owner: davidbarton
- License: mit
- Created: 2024-08-16T12:04:20.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-12-01T17:29:03.000Z (about 2 months ago)
- Last Synced: 2024-12-01T18:23:15.954Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 16.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-pocketbase - Cookie auth demo - A demo of cookie based authentication flow for PocketBase. ![GitHub Repo stars](https://img.shields.io/github/stars/davidbarton/pocketbase-cookie-auth-demo) (Showcases)
README
# pocketbase-cookie-auth-demo
[![Deploy website](https://github.com/davidbarton/pocketbase-cookie-auth-demo/actions/workflows/main.yml/badge.svg)](https://github.com/davidbarton/pocketbase-cookie-auth-demo/actions/workflows/main.yml)
> Disclaimer: You should use the PocketBase API methods with their powerful built-in authorization if you can. This demo exists for those edge cases where API methods are not an option (disabled JS).
The goal of this demo is to showcase a naive implementation of cookie based authentication flow for PocketBase [https://pocketbase.io](https://pocketbase.io).
## Demo
You can try it now at [https://pocketbase-cookie-auth-demo.pockethost.io](https://pocketbase-cookie-auth-demo.pockethost.io).
## How to run
1. Download binary from [https://github.com/pocketbase/pocketbase/releases](https://github.com/pocketbase/pocketbase/releases) into the project root and make sure you can execute it.
2. Run `PB_IS_LOCALHOST=true ./pocketbase serve`.