Skip to content
Migrating from NextAuth.js v4? Read our migration guide.
API reference@auth/azure-tables-adapter

@auth/azure-tables-adapter

An official Azure Table Storage adapter for Auth.js / NextAuth.js.

Installation

npm install next-auth @auth/azure-tables-adapter

keys

const keys: {
  account: "account";
  accountByUserId: "accountByUserId";
  session: "session";
  sessionByUserId: "sessionByUserId";
  user: "user";
  userByEmail: "userByEmail";
  verificationToken: "verificationToken";
};

Type declaration

account

account: string = "account";

accountByUserId

accountByUserId: string = "accountByUserId";

session

session: string = "session";

sessionByUserId

sessionByUserId: string = "sessionByUserId";

user

user: string = "user";

userByEmail

userByEmail: string = "userByEmail";

verificationToken

verificationToken: string = "verificationToken";

TableStorageAdapter()

TableStorageAdapter(client): Adapter

Parameters

ParameterType
clientTableClient

Returns

Adapter


withoutKeys()

withoutKeys<T>(entity): T

Type parameters

Type parameter
T

Parameters

ParameterType
entityGetTableEntityResponse<TableEntityResult<T>>

Returns

T

Auth.js © Balázs Orbán and Team - 2024