Skip to content

Correctly mapping UserAttributes to User type #1552

Answered by pilcrowOnPaper
zealsprince asked this question in Q&A
Discussion options

You must be logged in to vote

Should be typeof auth instead of typeof Lucia

declare module 'lucia' {
  interface Register {
    Lucia: typeof auth
    DatabaseUserAttributes: DatabaseUserAttributes
  }
}

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@zealsprince
Comment options

@pilcrowOnPaper
Comment options

@zealsprince
Comment options

Answer selected by zealsprince
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants