Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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.

Awesome Lists containing this project

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