Quellcode durchsuchen

Use URL save variant for b64 conversion

Vishnu vor 4 Jahren
Ursprung
Commit
e5756e7a78
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  1. 2 1
      lib/core/configuration.dart

+ 2 - 1
lib/core/configuration.dart

@@ -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 {