N2
N2
DDeno
Created by N2 on 11/19/2024 in #help
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?
1 replies