simplify token issuer/verifier interface
This commit is contained in:
+6
-2
@@ -1,7 +1,11 @@
|
||||
package auth
|
||||
|
||||
type GrantClaims struct {
|
||||
type VideoGrant struct {
|
||||
RoomCreate bool `json:"room_create,omitempty"`
|
||||
RoomJoin bool `json:"room_join,omitempty"`
|
||||
Room string `json:"room"`
|
||||
Room string `json:"room,omitempty"`
|
||||
}
|
||||
|
||||
type ClaimGrants struct {
|
||||
Video *VideoGrant `json:"video,omitempty"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user