Skip to content

Commit

Permalink
Enable setting name with AccessToken helper (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidzhao authored Dec 28, 2021
1 parent b146ec0 commit 550362e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions auth/accesstoken.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ func (t *AccessToken) SetValidFor(duration time.Duration) *AccessToken {
return t
}

func (t *AccessToken) SetName(name string) *AccessToken {
t.grant.Name = name
return t
}

func (t *AccessToken) AddGrant(grant *VideoGrant) *AccessToken {
t.grant.Video = grant
return t
Expand Down

0 comments on commit 550362e

Please sign in to comment.