Browse Source

Use URL save variant for b64 conversion

Vishnu 4 years ago
parent
commit
e5756e7a78
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lib/core/configuration.dart

+ 2 - 1
lib/core/configuration.dart

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