Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Poc/next auth prisma #48

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from
Draft

Poc/next auth prisma #48

wants to merge 11 commits into from

Conversation

juskek
Copy link
Collaborator

@juskek juskek commented Aug 30, 2023

Credentials are checked against Prisma,

  • if valid, then it authenticates (see login success)
    • custom keys can also be added to the session object, e.g. userId, allowing the server to make calls to Prisma (see custom key)
  • if invalid then it does not authenticate (see failed login)

(login success)
temp

(custom key - shown in yarn dev console)
image

(failed login)
temp

@juskek juskek marked this pull request as draft August 30, 2023 15:05
id Int @id @default(autoincrement())
email String @unique
password String
name String?
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this value optional?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants