Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/saibotsivad/cloudflare-durable-object-sessions
[DEMO] User and session management using Cloudflare Worker "Durable Objects".
https://github.com/saibotsivad/cloudflare-durable-object-sessions
cloudflare demo durable-objects workers
Last synced: 2 months ago
JSON representation
[DEMO] User and session management using Cloudflare Worker "Durable Objects".
- Host: GitHub
- URL: https://github.com/saibotsivad/cloudflare-durable-object-sessions
- Owner: saibotsivad
- License: other
- Created: 2022-01-18T04:09:25.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-23T03:32:28.000Z (almost 2 years ago)
- Last Synced: 2024-10-07T23:22:24.121Z (3 months ago)
- Topics: cloudflare, demo, durable-objects, workers
- Language: JavaScript
- Homepage:
- Size: 31.3 KB
- Stars: 8
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# `[DEMO]` cloudflare-durable-object-sessions
Demo of Cloudflare Workers and Durable Objects as an approach to user and session management.
This was just me, trying to understand how Durable Objects work, and how I might use them for authentication and session management.
Docs of interest:
- Learning the basics: https://developers.cloudflare.com/workers/learning/using-durable-objects
- The runtime APIs: https://developers.cloudflare.com/workers/runtime-apis/durable-objects
- Using the CF API: https://api.cloudflare.com/#durable-objects-namespace-list-objects## Deploy notes
You can run this yourself, if you want. Make sure to change the `routes` in the `wrangler.toml` file,
and everything else should work.At the end, to delete the whole stack you'll need to run a Wrangler migration to delete the
Durable Object class (see the `wrangler.toml` file for notes), and then you can go into
the Worker page (in the Cloudflare dashboard), into "Manage Services", and there
delete all the stuff created here.## License
Published and released under the [Very Open License](http://veryopenlicense.com).