Use URL save variant for b64 conversion

This commit is contained in:
Vishnu 2021-06-13 15:36:25 +05:30
parent 8b119ee647
commit e5756e7a78

View file

@ -213,7 +213,8 @@ class Configuration {
Sodium.base642bin(getEncryptedToken()),
Sodium.base642bin(attributes.publicKey),
secretKey);
await setToken(Sodium.bin2base64(token));
await setToken(
Sodium.bin2base64(token, variant: Sodium.base64VariantUrlsafe));
}
Future<KeyAttributes> createNewRecoveryKey() async {