@cedarjs/auth-firebase-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,6 +1,6 @@
|
|
|
1
1
|
import admin from 'firebase-admin'
|
|
2
2
|
|
|
3
|
-
import type { Decoded } from '@cedarjs/api'
|
|
3
|
+
import type { AuthContextPayload, Decoded } from '@cedarjs/api'
|
|
4
4
|
import { AuthenticationError } from '@cedarjs/graphql-server'
|
|
5
5
|
|
|
6
6
|
// eslint-disable-next-line no-unused-vars, @typescript-eslint/no-unused-vars
|
|
@@ -24,7 +24,13 @@ const adminApp = admin.initializeApp({
|
|
|
24
24
|
*
|
|
25
25
|
* @see https://github.com/cedarjs/cedar/tree/main/packages/auth for examples
|
|
26
26
|
*/
|
|
27
|
-
export const getCurrentUser = async (
|
|
27
|
+
export const getCurrentUser = async (
|
|
28
|
+
decoded: Decoded,
|
|
29
|
+
/* eslint-disable-next-line no-unused-vars, @typescript-eslint/no-unused-vars */
|
|
30
|
+
{ token, type }: AuthContextPayload[1],
|
|
31
|
+
/* eslint-disable-next-line no-unused-vars, @typescript-eslint/no-unused-vars */
|
|
32
|
+
{ event, context }: Partial<AuthContextPayload[2]> = {}
|
|
33
|
+
) => {
|
|
28
34
|
return decoded
|
|
29
35
|
}
|
|
30
36
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/auth-firebase-setup",
|
|
3
|
-
"version": "8.0.0-canary.
|
|
3
|
+
"version": "8.0.0-canary.3390",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/cedarjs/cedar.git",
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
"test:watch": "vitest watch"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@cedarjs/cli-helpers": "8.0.0-canary.
|
|
42
|
+
"@cedarjs/cli-helpers": "8.0.0-canary.3390"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@cedarjs/framework-tools": "8.0.0-canary.
|
|
45
|
+
"@cedarjs/framework-tools": "8.0.0-canary.3390",
|
|
46
46
|
"@types/yargs": "17.0.35",
|
|
47
47
|
"concurrently": "9.2.4",
|
|
48
48
|
"publint": "0.3.25",
|