Open ton252 opened 1 year ago
That is an expected change in v2: https://github.com/ananay/passport-apple/commit/6b8c1ce0fecf6cac2c8a0f669824dc2640fb5112
Please note that TypeScript typings were not updated to reflect this change: https://github.com/DefinitelyTyped/DefinitelyTyped/discussions/66925
The problem is in missing decoding idToken before sending it in verifying block. It needs to change idToken annotation to "string" in TypeScript interface and return it without decoding or decode it before returning to conform DecodedIdToken interface.
Console log will be something like that: