DenoDDeno
Powered by
liamtftL
Denoโ€ข3y agoโ€ข
2 replies
liamtft

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?)
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,944Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Encryption using Deno KV and OAuth?
PonchoPPoncho / help
3y ago
Problems with Deno KV
mostprodevMmostprodev / help
3y ago
Where is my Twitter access token with Deno KV Oauth?
PixelPPixel / help
3y ago
Can't get @deno/kv-oauth to work
telesto๐ŸŒ›Ttelesto๐ŸŒ› / help
10mo ago