@next-auth/dgraph-adapter
Advanced tools
Comparing version 0.2.2-pr.317-2f2112e3.314 to 0.2.2-pr.317-4724b1ae.318
@@ -1,8 +0,22 @@ | ||
export declare type DgraphJwtAlgorithm = "HS256" | "RS256"; | ||
export interface DgraphClientParams { | ||
endpoint: string; | ||
/** `X-Auth-Token` header value */ | ||
/** | ||
* `X-Auth-Token` header value | ||
* | ||
* [Dgraph Cloud Authentication](https://dgraph.io/docs/cloud/cloud-api/overview/#dgraph-cloud-authentication) | ||
*/ | ||
authToken: string; | ||
/** [Using JWT and authorization claims](https://dgraph.io/docs/graphql/authorization/authorization-overview#using-jwts-and-authorization-claims) */ | ||
jwtSecret?: string; | ||
jwtAlgorithm?: DgraphJwtAlgorithm; | ||
/** | ||
* @default "RS256" | ||
* | ||
* [Using JWT and authorization claims](https://dgraph.io/docs/graphql/authorization/authorization-overview#using-jwts-and-authorization-claims) | ||
*/ | ||
jwtAlgorithm?: "HS256" | "RS256"; | ||
/** | ||
* @default "Authorization" | ||
* | ||
* [Using JWT and authorization claims](https://dgraph.io/docs/graphql/authorization/authorization-overview#using-jwts-and-authorization-claims) | ||
*/ | ||
authHeader?: string; | ||
@@ -9,0 +23,0 @@ } |
import { format } from "./utils"; | ||
import type { Adapter } from "next-auth/adapters"; | ||
import type { DgraphClientParams } from "./client"; | ||
export type { DgraphClientParams, DgraphClientError } from "./client"; | ||
export interface DgraphAdapterOptions { | ||
@@ -12,4 +13,3 @@ fragments?: { | ||
} | ||
export type { DgraphClientParams }; | ||
export { format }; | ||
export declare function DgraphAdapter(client: DgraphClientParams, options?: DgraphAdapterOptions): Adapter; |
{ | ||
"name": "@next-auth/dgraph-adapter", | ||
"version": "0.2.2-pr.317-2f2112e3.314+2f2112e", | ||
"version": "0.2.2-pr.317-4724b1ae.318+4724b1a", | ||
"description": "Dgraph adapter for next-auth.", | ||
@@ -47,3 +47,3 @@ "homepage": "https://next-auth.js.org", | ||
}, | ||
"gitHead": "2f2112e350a76ab4430c29e1edc042547cd13b04" | ||
"gitHead": "4724b1aeb556a970427f061f42ffb0d848b4a3b4" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
23425
460