@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
Parameter | Type |
---|---|
client | TableClient |
Returns
withoutKeys()
withoutKeys<T>(entity): T
Type parameters
Type parameter |
---|
T |
Parameters
Parameter | Type |
---|---|
entity | GetTableEntityResponse <TableEntityResult <T >> |
Returns
T