@mastra/auth-workos 1.7.0 → 1.7.1-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -747,7 +747,12 @@ var MastraAuthWorkos = class extends MastraAuthProvider {
747
747
  const sessionData = {
748
748
  accessToken: authResponse.accessToken,
749
749
  refreshToken: authResponse.refreshToken,
750
- user: authResponse.user,
750
+ user: {
751
+ ...authResponse.user,
752
+ createdAt: authResponse.user.createdAt.toISOString(),
753
+ updatedAt: authResponse.user.updatedAt.toISOString(),
754
+ lastSignInAt: authResponse.user.lastSignInAt?.toISOString() ?? null
755
+ },
751
756
  organizationId: authResponse.organizationId,
752
757
  impersonator: authResponse.impersonator
753
758
  };
package/dist/index.js CHANGED
@@ -746,7 +746,12 @@ var MastraAuthWorkos = class extends MastraAuthProvider {
746
746
  const sessionData = {
747
747
  accessToken: authResponse.accessToken,
748
748
  refreshToken: authResponse.refreshToken,
749
- user: authResponse.user,
749
+ user: {
750
+ ...authResponse.user,
751
+ createdAt: authResponse.user.createdAt.toISOString(),
752
+ updatedAt: authResponse.user.updatedAt.toISOString(),
753
+ lastSignInAt: authResponse.user.lastSignInAt?.toISOString() ?? null
754
+ },
750
755
  organizationId: authResponse.organizationId,
751
756
  impersonator: authResponse.impersonator
752
757
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/auth-workos",
3
- "version": "1.7.0",
3
+ "version": "1.7.1-alpha.0",
4
4
  "description": "Mastra WorkOS Auth integration",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -36,8 +36,8 @@
36
36
  "typescript": "^7.0.2",
37
37
  "vitest": "5.1.0",
38
38
  "@internal/auth": "0.0.40",
39
- "@internal/lint": "0.0.152",
40
- "@internal/types-builder": "0.0.127"
39
+ "@internal/types-builder": "0.0.127",
40
+ "@internal/lint": "0.0.152"
41
41
  },
42
42
  "files": [
43
43
  "dist",