getCredentials function
Get the credentials from the SharedPrefs
Implementation
Future<Map?> getCredentials() async {
const storage = FlutterSecureStorage();
final credentials = await storage.read(key: Constants.credentials);
return credentials != null ? json.decode(credentials) : null;
}