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

Update Prisma Adapter to Store User Info for Online Tokens #715

Merged
merged 17 commits into from May 10, 2024

Conversation

lizkenyon
Copy link
Contributor

@lizkenyon lizkenyon commented Mar 26, 2024

WHY are these changes introduced?

Fixes find current user

When using online access tokens store all the user info in the Session table to the DB. This data can then be used by the app to implement features such as changing the page based on the user, implementing access controls, and logging users activities.

This PR covers the PRISMA ADAPTER ONLY. We will continue to update the rest of the adapters packages.

WHAT is this pull request doing?

This PR creates a migration for the session table to add in the additional user information received.

For simplicity we decided to store the user information in the session table instead of creating a new user table.

The related prisma functions to store and read from the DB have been updated as well.

Type of change

  • Patch: Bug (non-breaking change which fixes an issue)
  • Minor: New feature (non-breaking change which adds functionality)
  • Major: Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist

  • I have used yarn changeset to create a draft changelog entry (do NOT update the CHANGELOG.md files manually)
  • I have added/updated tests for this change
  • I have documented new APIs/updated the documentation for modified APIs (for public APIs)

@lizkenyon lizkenyon requested a review from a team as a code owner March 26, 2024 13:27
@lizkenyon lizkenyon changed the title [WIP] Update Prisma Adapter to Store User Info Update Prisma Adapter to Store User Info for Online Tokens Mar 28, 2024
.changeset/rich-panthers-refuse.md Outdated Show resolved Hide resolved
.changeset/rich-panthers-refuse.md Outdated Show resolved Hide resolved
@lizkenyon lizkenyon merged commit ec4270a into main May 10, 2024
17 checks passed
@lizkenyon lizkenyon deleted the liz/store-user-info branch May 10, 2024 21:10
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.

find current user
2 participants