We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01b3649 commit f602b9cCopy full SHA for f602b9c
packages/rules-unit-testing/src/api/index.ts
@@ -159,7 +159,8 @@ export type FirebaseEmulatorOptions = {
159
};
160
161
function trimmedBase64Encode(val: string): string {
162
- return base64Encode(val).split("=")[0];
+ // Use base64url encoding and remove padding in the end (dot characters).
163
+ return base64Encode(val).replace(/\./g, "");
164
}
165
166
function createUnsecuredJwt(token: TokenOptions, projectId?: string): string {
0 commit comments