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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user