flarebase-auth
flarebase-auth copied to clipboard
Error: error:0680007B:asn1 encoding routines::header too long
When using auth.createSessionCookie I'm seeing this.
Error: error:0680007B:asn1 encoding routines::header too long
at createPrivateKey (node:internal/crypto/keys:632:12)
at fromPKCS8 (<PATH_TO_PROJECT>\node_modules\.pnpm\[email protected]\node_modules\jose\dist\node\cjs\runtime\asn1.js:37:58)
at Object.importPKCS8 (<PATH_TO_PROJECT>\node_modules\.pnpm\[email protected]\node_modules\jose\dist\node\cjs\key\import.js:27:36)
at Object.<anonymous> (<PATH_TO_PROJECT>\node_modules\.pnpm\@[email protected]\node_modules\@marplex\flarebase-auth\build\main\lib\google-oauth.js:24:43)
at Generator.next (<anonymous>)
at <PATH_TO_PROJECT>\node_modules\.pnpm\@[email protected]\node_modules\@marplex\flarebase-auth\build\main\lib\google-oauth.js:8:71
at new Promise (<anonymous>)
at __awaiter (<PATH_TO_PROJECT>\node_modules\.pnpm\@[email protected]\node_modules\@marplex\flarebase-auth\build\main\lib\google-oauth.js:4:12)
at Object.getAuthToken (<PATH_TO_PROJECT>\node_modules\.pnpm\@[email protected]\node_modules\@marplex\flarebase-auth\build\main\lib\google-oauth.js:23:12)
at <PATH_TO_PROJECT>\node_modules\.pnpm\@[email protected]\node_modules\@marplex\flarebase-auth\build\main\lib\flarebase-auth.js:159:69 {
library: 'asn1 encoding routines',
reason: 'header too long',
code: 'ERR_OSSL_ASN1_HEADER_TOO_LONG'
}