@cedarjs/auth-supabase-setup 8.0.0-canary.3487 → 8.0.0-canary.3492

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,7 +6,7 @@ import { AuthenticationError, ForbiddenError } from '@cedarjs/graphql-server'
6
6
  * Represents the user attributes returned by the decoding the
7
7
  * Authentication provider's JWT together with an optional list of roles.
8
8
  */
9
- type RedwoodUser = Record<string, unknown> & { roles?: string[] }
9
+ type CedarUser = Record<string, unknown> & { roles?: string[] }
10
10
 
11
11
  /**
12
12
  * getCurrentUser returns the user information together with
@@ -26,7 +26,7 @@ type RedwoodUser = Record<string, unknown> & { roles?: string[] }
26
26
  *
27
27
  * @see https://github.com/cedarjs/cedar/tree/main/packages/auth for examples
28
28
  *
29
- * @returns RedwoodUser
29
+ * @returns CedarUser
30
30
  */
31
31
  export const getCurrentUser = async (
32
32
  decoded: Decoded,
@@ -34,7 +34,7 @@ export const getCurrentUser = async (
34
34
  { token, type }: AuthContextPayload[1],
35
35
  /* eslint-disable-next-line no-unused-vars, @typescript-eslint/no-unused-vars */
36
36
  { event, context }: Partial<AuthContextPayload[2]> = {}
37
- ): Promise<RedwoodUser | null> => {
37
+ ): Promise<CedarUser | null> => {
38
38
  if (!decoded) {
39
39
  return null
40
40
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/auth-supabase-setup",
3
- "version": "8.0.0-canary.3487",
3
+ "version": "8.0.0-canary.3492",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/cedarjs/cedar.git",
@@ -37,10 +37,10 @@
37
37
  "prepublishOnly": "NODE_ENV=production yarn build"
38
38
  },
39
39
  "dependencies": {
40
- "@cedarjs/cli-helpers": "8.0.0-canary.3487"
40
+ "@cedarjs/cli-helpers": "8.0.0-canary.3492"
41
41
  },
42
42
  "devDependencies": {
43
- "@cedarjs/framework-tools": "8.0.0-canary.3487",
43
+ "@cedarjs/framework-tools": "8.0.0-canary.3492",
44
44
  "@types/yargs": "17.0.35",
45
45
  "concurrently": "9.2.5",
46
46
  "publint": "0.3.25",