Skip to content

Instantly share code, notes, and snippets.

@tinwritescode
Created January 10, 2023 13:41
Show Gist options
  • Save tinwritescode/e4286be97fbaf6718acff0f3745d028e to your computer and use it in GitHub Desktop.
Save tinwritescode/e4286be97fbaf6718acff0f3745d028e to your computer and use it in GitHub Desktop.

Update database

This command will update the database with any changes made to the Prisma schema. It first runs the yarn install command, which will install any new packages added to the project. Then it runs npx prisma db push, which will apply the changes from the Prisma schema file to the actual database. This will ensure that the database is up to date with the latest changes.

yarn install
npx prisma db push
@tinwritescode
Copy link
Author

image

@tinwritescode
Copy link
Author

Refresh token backend (/api/auth/refresh):

image

Frontend call refresh:
image

Dispatch refresh on handleResponse:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment