Skip to content

Serving an alternate handleCallback() redirect w/ cookies #307

@liamtsang

Description

@liamtsang

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?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions