CredentialResponse.fromQuery constructor
Searches base64URL encoded Response from queryParameters
and decodes it.
Expected key is 'iwce'
Implementation
CredentialResponse.fromQuery(Map<String, dynamic> queryParameters) {
if (!queryParameters.containsKey('iwce')) {
throw FormatException('Could not find expected query parameter');
}
Map<String, dynamic> json = jsonDecode(utf8.decode(
base64Decode(Base64Codec().normalize(queryParameters['iwce']))));
_fromJson(json);
}