@absolutejs/auth 0.75.1 → 0.75.3

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.
@@ -223,7 +223,8 @@ export type DeviceAuthorizationResponse = {
223
223
  verification_uri: string;
224
224
  verification_uri_complete: string;
225
225
  };
226
- export declare const issueDeviceAuthorization: <UserType>({ clientId, config, now, requestedScopes }: {
226
+ export declare const issueDeviceAuthorization: <UserType>({ audience, clientId, config, now, requestedScopes }: {
227
+ audience?: string;
227
228
  clientId: string;
228
229
  config: OidcProviderConfig<UserType>;
229
230
  now?: number;
@@ -12053,6 +12053,7 @@ var oauthCodesTable = pgTable("auth_oauth_codes", {
12053
12053
  user_id: varchar("user_id", { length: ID_LENGTH }).notNull()
12054
12054
  });
12055
12055
  var oauthDeviceAuthorizationsTable = pgTable("auth_oauth_device_authorizations", {
12056
+ audience: varchar("audience", { length: 2048 }),
12056
12057
  client_id: varchar("client_id", { length: ID_LENGTH }).notNull(),
12057
12058
  created_at_ms: bigint("created_at_ms", { mode: "number" }).notNull(),
12058
12059
  device_code_hash: varchar("device_code_hash", {
@@ -12168,6 +12169,7 @@ var toCodeValues = (code) => ({
12168
12169
  user_id: code.userId
12169
12170
  });
12170
12171
  var toDeviceAuth = (row) => ({
12172
+ audience: row.audience ?? undefined,
12171
12173
  clientId: row.client_id,
12172
12174
  createdAt: row.created_at_ms,
12173
12175
  deviceCodeHash: row.device_code_hash,
@@ -12305,6 +12307,7 @@ var createPostgresDeviceAuthorizationStore = (db) => ({
12305
12307
  },
12306
12308
  saveDeviceAuthorization: async (deviceAuthorization) => {
12307
12309
  await db.insert(oauthDeviceAuthorizationsTable).values({
12310
+ audience: deviceAuthorization.audience ?? null,
12308
12311
  client_id: deviceAuthorization.clientId,
12309
12312
  created_at_ms: deviceAuthorization.createdAt,
12310
12313
  device_code_hash: deviceAuthorization.deviceCodeHash,
@@ -12944,5 +12947,5 @@ export {
12944
12947
  consumeSocketTicket
12945
12948
  };
12946
12949
 
12947
- //# debugId=9914FF0D8636BBE564756E2164756E21
12950
+ //# debugId=9E34D0D4B7BFB31E64756E2164756E21
12948
12951
  //# sourceMappingURL=index.js.map