Example #1
0
        public async Task <UserObjectResponse> GetUserInfo()
        {
            if (Info != null)
            {
                return(Info);
            }
            Info = await AuthState.GetUserInfo();

            return(Info);
        }
Example #2
0
        public async Task <ulong?> GetId()
        {
            if (AuthState == null)
            {
                return(null);
            }
            if (Info != null)
            {
                return(Info.Id);
            }
            Info = await AuthState.GetUserInfo();

            return(Info.Id);
        }