Auth Storage Adapter
Functions
Functions
EpicFlowAdapter
Create an AuthJS-compatible database adapter using Epic Flow storage
Signature:
EpicFlowAdapter(config: AuthStorageAdapterConfig): Adapter
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
config | AuthStorageAdapterConfig | Yes | Configuration for the adapter |
Returns:
Adapter - AuthJS Adapter instance
Examples:
import { EpicFlowAdapter } from '@epicdm/flowstate-auth-storage-adapter';
export default NextAuth({
adapter: EpicFlowAdapter({
domainId: 'my-app',
version: 1
}),
// ... other NextAuth config
});