denoland / deno_kv_oauth

High-level OAuth 2.0 powered by Deno KV.
https://jsr.io/@deno/kv-oauth
MIT License
261 stars 27 forks source link

BREAKING: add `getSessionData()` #295

Open iuioiua opened 10 months ago

iuioiua commented 10 months ago

Previously, the dev would use getSessionId() to check whether the user is signed in. They'd then use the sessionId value to perform database operations, such as getting some session/user object.

Now, this is all done in a single step. The dev configures which data is saved to the database within handleCallback(). getSessionData() then returns that data from a given request.

Reviews, concerns and suggestions are welcome.