generateIdToken method
Returns Future of String, Decentralized Id Token with optional serialized data
Implementation
Future<String> generateIdToken(
{int lifespan = 900, String attachment = 'none'}) async {
var params = {'lifespan': lifespan, 'attachment': attachment};
return sendToProvider(
method: UserMethod.magic_auth_generate_id_token,
params: [params]).then((jsMsg) {
var relayerResponse = RelayerResponse<String>.fromJson(
json.decode(jsMsg.message), (json) => json as String);
return relayerResponse.response.result;
});
}