getUserInfo method
override
Reads the stored user info from secure storage.
Returns the stored user info or null
if not found.
which can be encoded into OpenIdClaims
using jsonDecode()
and OpenIdClaims.fromJson()
.
OpenIdClaims
implements UserInfo
wher you will find
all the information about the logged in user
Implementation
@override
Future<String?> getUserInfo() async {
return await _storage.read(key: userNameKey);
}