Description
Originally reported here
firebase/firebase-tools#2770 (comment)
@samtstern I think this is a real issue, actually! I'm encountering it even though I'm executing createSessionCookie
inside the function emulator. So I dug in, and I believe the validation schema is wrong. The auth emulator validation schema specifies validationDuration as a string, but firebase-admin-node
constructs it as a number.
I note that the OpenAPI schema for createSessionCookie
specifies the parameter as "string (int64 format)". If that means it's meant to be a string-encoded int64, then this is really a firebase-admin-node
bug, although clearly the production auth server is accepting numbers for this parameter.
Originally posted by @andymatuschak in firebase/firebase-tools#2770 (comment)