Skip to content

How accept invitation flow works? #792

Closed Answered by gnasamx
gnasamx asked this question in Q&A
Discussion options

You must be logged in to vote

I understood this. Currently dub is using next-auth 4 and Email Provider. This Email provider is deprecated in auth.js (next-auth 5 beta).

I understood the accept invitation by using Resend Provider. The flow is as below:

The below code if from Next Auth GitHub repo.

Resend provider has type: "email"

// packages/core/src/providers/resend.ts

export default function Resend(config: EmailUserConfig): EmailConfig {
  return {
    id: "resend",
    type: "email",   <------------------------------------
    name: "Resend",
    from: "Auth.js <[email protected]>",
    maxAge: 24 * 60 * 60,
    async sendVerificationRequest(params) { ... },
    options: config,
  }
}

The invitation url looks li…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gnasamx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant