diff --git a/.changeset/rich-apricots-lick.md b/.changeset/rich-apricots-lick.md new file mode 100644 index 0000000000..f9daf861d2 --- /dev/null +++ b/.changeset/rich-apricots-lick.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-auth-backend': patch +--- + +Fixed parsing of OIDC key timestamps when using SQLite. diff --git a/plugins/auth-backend/src/identity/DatabaseKeyStore.ts b/plugins/auth-backend/src/identity/DatabaseKeyStore.ts index e53102e333..dd2941a3d5 100644 --- a/plugins/auth-backend/src/identity/DatabaseKeyStore.ts +++ b/plugins/auth-backend/src/identity/DatabaseKeyStore.ts @@ -39,7 +39,7 @@ type Options = { const parseDate = (date: string | Date) => { const parsedDate = typeof date === 'string' - ? DateTime.fromSQL(date, { locale: 'UTC' }) + ? DateTime.fromSQL(date, { zone: 'UTC' }) : DateTime.fromJSDate(date); if (!parsedDate.isValid) {