Skip to content

nikitaclicks/next-auth-table-storage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

NextAuth.js Azure Table Storage Adapter

Plug-n-play single-file version.

Usage

  1. Install npm package @azure/data-tables

  2. Create a table for auth data, auth in my example.

  3. Plug the adapter function into the NextAuth:

image

Where env variable are as follows:

AZURE_ACCOUNT=storageaccountname
AZURE_ACCESS_KEY=longRandomKey
AZURE_TABLES_ENDPOINT=https://$AZURE_ACCOUNT.table.core.windows.net

Notes

  1. Can be used with a JWT session strategy to decrease reads and writes.
  2. Merged into the auth.js repo, use it directly from there https://authjs.dev/getting-started/adapters/azure-tables

About

Auth.js Azure Table Storage Adapter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published