Now able to enter the lobby

This commit is contained in:
AeonLucid
2021-11-04 06:29:58 +01:00
parent 667d19e9f2
commit e0010e1d31
19 changed files with 593 additions and 10 deletions
@@ -38,12 +38,12 @@ namespace Prospect.Server.Api.Services.Auth
return _tokenHandler.WriteToken(token);
}
public string GenerateUser(PlayFabEntity user)
public string GenerateUser(PlayFabEntity entity)
{
return CreateToken(new[]
{
new Claim(AuthClaimTypes.UserId, user.UserId),
new Claim(AuthClaimTypes.EntityId, user.Id),
new Claim(AuthClaimTypes.UserId, entity.UserId),
new Claim(AuthClaimTypes.EntityId, entity.Id),
new Claim(AuthClaimTypes.Type, AuthType.User),
});
}
@@ -52,6 +52,7 @@ namespace Prospect.Server.Api.Services.Auth
{
return CreateToken(new[]
{
new Claim(AuthClaimTypes.UserId, entity.UserId),
new Claim(AuthClaimTypes.EntityId, entity.Id),
new Claim(AuthClaimTypes.Type, AuthType.Entity),
});