We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a24052 commit ff6befeCopy full SHA for ff6befe
2 files changed
packages/auth/src/index.ts
@@ -1,3 +1,4 @@
1
+export * from './utils'
2
export * from './Auth'
3
export * from './Session'
4
export * from './SessionDevice'
packages/auth/src/utils.ts
@@ -0,0 +1,11 @@
+import { Auth } from './Auth'
+
+/**
+ * Create a new instance of the Auth class with an optional secret for JWT
5
+ * signing and verification.
6
+ *
7
+ * @param secret — The secret key used for signing and verifying JWTs.
8
9
+ * @returns — A new instance of the Auth class.
10
+ */
11
+export const auth = (secret?: string | undefined) => Auth.make(secret)
0 commit comments