Merged in feat/sw-3525-sas-member-type-in-tracking (pull request #2931)

feat(SW-3525): Set correct member type in tracking for partner-sas

* Set correct member type in tracking for partner-sas


Approved-by: Joakim Jäderberg
This commit is contained in:
Anton Gunnarsson
2025-10-09 12:47:38 +00:00
parent d298d5c2ff
commit a5759205ec
6 changed files with 53 additions and 6 deletions

View File

@@ -48,7 +48,10 @@ const config: NextAuthConfig = {
async jwt(params) {
if (params.trigger === "signIn") {
const accessToken = params.account?.access_token
// expires_at is in seconds for SAS, we need milliseconds
const expiresAt = params.account?.expires_at
? params.account.expires_at * 1000
: null
if (!accessToken) {
throw new Error("AuthError: Missing access token")