mirror of
https://github.com/cadmium-im/zirconium-sharp.git
synced 2024-12-22 17:01:50 +00:00
Make multiple EntityID in SessionAuthData
This commit is contained in:
parent
dea57a3cb2
commit
38f2d9d1d6
@ -2,7 +2,7 @@ namespace Zirconium.Core
|
||||
{
|
||||
public class SessionAuthData
|
||||
{
|
||||
public string EntityID { get; set; }
|
||||
public string[] EntityID { get; set; }
|
||||
public string DeviceID { get; set; }
|
||||
}
|
||||
}
|
@ -103,7 +103,7 @@ namespace DefaultAuthProvider
|
||||
{
|
||||
SessionAuthData payload = new SessionAuthData();
|
||||
payload.DeviceID = deviceID;
|
||||
payload.EntityID = entityID;
|
||||
payload.EntityID = new string[] { entityID };
|
||||
return new JwtBuilder()
|
||||
.WithAlgorithm(new HMACSHA256Algorithm()) // symmetric
|
||||
.WithSecret(this.jwtSecret)
|
||||
|
Loading…
Reference in New Issue
Block a user