fixed the behavior of the validation method on the emulator #37
Annotations
4 errors and 1 warning
build
unable to access 'https://github.com/Code-Hex/firebase-auth-cloudflare-workers/': Failed to connect to github.com port 443 after 129568 ms: Connection timed out
|
tests/auth.test.ts > createSessionCookie() > creates a revocable session cookie:
tests/auth.test.ts#L83
AssertionError: promise resolved "{ admin: true, groupId: '1234', …(9) }" instead of rejecting
- Expected
+ Received
- [Error: rejected promise]
+ Object {
+ "admin": true,
+ "aud": "project12345",
+ "auth_time": 1708749927,
+ "exp": 1708836327,
+ "firebase": Object {
+ "identities": Object {},
+ "sign_in_provider": "custom",
+ },
+ "groupId": "1234",
+ "iat": 1708749927,
+ "iss": "https://session.firebase.google.com/project12345",
+ "sub": "21667244562514118536",
+ "uid": "21667244562514118536",
+ "user_id": "21667244562514118536",
+ }
❯ tests/auth.test.ts:83:69
|
tests/auth.test.ts > verifySessionCookie() > fails with checkRevoked set to true and corresponding user disabled:
tests/auth.test.ts#L170
AssertionError: promise resolved "{ admin: true, groupId: '1234', …(9) }" instead of rejecting
- Expected
+ Received
- [Error: rejected promise]
+ Object {
+ "admin": true,
+ "aud": "project12345",
+ "auth_time": 1708749929,
+ "exp": 1708836329,
+ "firebase": Object {
+ "identities": Object {},
+ "sign_in_provider": "custom",
+ },
+ "groupId": "1234",
+ "iat": 1708749929,
+ "iss": "https://session.firebase.google.com/project12345",
+ "sub": "344604356634a26a3312",
+ "uid": "344604356634a26a3312",
+ "user_id": "344604356634a26a3312",
+ }
❯ tests/auth.test.ts:170:69
|
build
Process completed with exit code 1.
|
eslint
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: stefanzweifel/git-auto-commit-action@v4. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|