mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-16 07:13:29 +00:00
Drop unused polar refresh-token column
This commit is contained in:
1 parent
ccf4d6b2ad
commit
2d5b15c067
4 files changed
+1
-6
No files matched your search
@@ -94,8 +94,7 @@ export const GET = apiHandler(async (request: NextRequest) => {
|
||||
where: { id: userId },
|
||||
data: {
|
||||
polarAccessTokenEncrypted: encrypt(tokens.access_token),
|
||||
// Polar issues no refresh token; the column stays null.
|
||||
polarRefreshTokenEncrypted: null,
|
||||
// Polar issues no refresh token, so no refresh column is stored.
|
||||
polarUserIdEncrypted: encrypt(polarUserId),
|
||||
},
|
||||
});
|
||||
|
||||
@@ -36,7 +36,6 @@ export const POST = apiHandler(async () => {
|
||||
where: { id: user.id },
|
||||
data: {
|
||||
polarAccessTokenEncrypted: null,
|
||||
polarRefreshTokenEncrypted: null,
|
||||
polarUserIdEncrypted: null,
|
||||
},
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user