Conditional callback with deno_kv_oauth

Hello I am using deno_kv_oauth for my application and am trying to do the following: I want users to a have an internal uid that is the same format between oauth providers. Here is the logic flow I want to create: User signs in via oauth -> Redirected to callback page -> if an existing user -> redirect to homepage if not an existing user -> create a new internal user KV / id <- problem! I can't seem to find a way to figure out how to return a different redirect and save the cookies. (also I am using Hono but I do not think that is the problem?)
I
iuioiua61d ago
Hi there, are you able to open a GitHub issue? This is an interesting problem. Let me get back to you on it 🙂
L
liamtft61d ago
GitHub
Serving an alternate handleCallback() redirect w/ cookies · Issue #...
Hello I am using deno_kv_oauth for my application and am trying to do the following: I want users to a have an internal uid that is the same format between oauth providers. Here is the logic flow I...