File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2087,23 +2087,23 @@ export class OAuthService extends AuthConfig implements OnDestroy {
2087
2087
* This alphabet uses a-z A-Z 0-9 _- symbols.
2088
2088
* Symbols order was changed for better gzip compression.
2089
2089
*/
2090
- const url = 'Uint8ArdomValuesObj012345679BCDEFGHIJKLMNPQRSTWXYZ_cfghkpqvwxyz- ' ;
2090
+ const unreserved = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~ ' ;
2091
2091
let size = 45 ;
2092
2092
let id = '' ;
2093
2093
2094
2094
const crypto = self . crypto || self [ 'msCrypto' ] ;
2095
2095
if ( crypto ) {
2096
2096
const bytes = crypto . getRandomValues ( new Uint8Array ( size ) ) ;
2097
2097
while ( 0 < size -- ) {
2098
- id += url [ bytes [ size ] & 63 ] ;
2098
+ id += unreserved [ bytes [ size ] & 63 ] ;
2099
2099
}
2100
2100
} else {
2101
2101
while ( 0 < size -- ) {
2102
- id += url [ Math . random ( ) * 64 | 0 ] ;
2102
+ id += unreserved [ Math . random ( ) * 64 | 0 ] ;
2103
2103
}
2104
2104
}
2105
2105
2106
- resolve ( id ) ;
2106
+ resolve ( base64UrlEncode ( id ) ) ;
2107
2107
} ) ;
2108
2108
}
2109
2109
You can’t perform that action at this time.
0 commit comments