@auth/hasura-adapter
Official Hasura adapter for Auth.js / NextAuth.js.
Installation
npm install @auth/hasura-adapter
format
const format: {
from: B extends true ? T : null | T;
to: T;
};
Type declaration
from()
Type parameters
Type parameter | Value |
---|---|
T | - |
B extends boolean | false |
Parameters
Parameter | Type |
---|---|
object ? | null | Record <string , any > |
throwIfNullish ? | B |
Returns
B
extends true
? T
: null
| T
to()
Type parameters
Type parameter |
---|
T |
Parameters
Parameter | Type |
---|---|
object | Record <string , any > |
Returns
T
HasuraAdapter()
HasuraAdapter(client): Adapter
Parameters
Parameter | Type |
---|---|
client | HasuraAdapterClient |