N2
N22mo ago

How to get User Information (or access token) for a oAuth session leveraging deno_kv_oauth and Fresh

It looks like the demo for Auth0 and Fresh linked on the deno_kv_oauth denoland page (https://github.com/denoland/fresh-deno-kv-oauth-demo) uses v@0.6.1 which is older than the current version of v@0.10.0. When trying to use v@0.10.0 it appears there were a bunch of breaking changes but no update to the demos or docs on how to leverage those changes or port the code. The shared plugin in fresh.ts was removed, but guidance was provided how to write and include your own, so no issue there. However, it looks like getSessionAccessToken has been removed, as well as any way to get information about the OAuth session itself (if I could get the access token I could get the user information from Auth0's own APIs.) In looking in JSR, kv_auth is v0.11.0, no idea if anything has changed between that one and the one on denoland. If I force everything to v0.6.1, I can get it to work with the old APIs. Is that my only option right now?
GitHub
GitHub - denoland/fresh-deno-kv-oauth-demo: Fresh + Deno KV OAuth demo
Fresh + Deno KV OAuth demo. Contribute to denoland/fresh-deno-kv-oauth-demo development by creating an account on GitHub.
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?