@cedarjs/auth-supabase-setup 8.0.0-canary.3387 → 8.0.0-canary.3390

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.
@@ -1,4 +1,4 @@
1
- import type { Decoded } from '@cedarjs/api'
1
+ import type { AuthContextPayload, Decoded } from '@cedarjs/api'
2
2
  import { parseJWT } from '@cedarjs/api'
3
3
  import { AuthenticationError, ForbiddenError } from '@cedarjs/graphql-server'
4
4
 
@@ -29,7 +29,11 @@ type RedwoodUser = Record<string, unknown> & { roles?: string[] }
29
29
  * @returns RedwoodUser
30
30
  */
31
31
  export const getCurrentUser = async (
32
- decoded: Decoded
32
+ decoded: Decoded,
33
+ /* eslint-disable-next-line no-unused-vars, @typescript-eslint/no-unused-vars */
34
+ { token, type }: AuthContextPayload[1],
35
+ /* eslint-disable-next-line no-unused-vars, @typescript-eslint/no-unused-vars */
36
+ { event, context }: Partial<AuthContextPayload[2]> = {}
33
37
  ): Promise<RedwoodUser | null> => {
34
38
  if (!decoded) {
35
39
  return null
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/auth-supabase-setup",
3
- "version": "8.0.0-canary.3387",
3
+ "version": "8.0.0-canary.3390",
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.3387"
40
+ "@cedarjs/cli-helpers": "8.0.0-canary.3390"
41
41
  },
42
42
  "devDependencies": {
43
- "@cedarjs/framework-tools": "8.0.0-canary.3387",
43
+ "@cedarjs/framework-tools": "8.0.0-canary.3390",
44
44
  "@types/yargs": "17.0.35",
45
45
  "concurrently": "9.2.4",
46
46
  "publint": "0.3.25",