Skip to content

Commit 696f50b

Browse files
committed
docs: Fix comment for AuthorizationService.Authorize
1 parent 9a75e85 commit 696f50b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

authorization.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ func (authorizationService *AuthorizationService) WithClientProvider(provider *C
109109
// If permissionsRequired is nil or empty and a client with the given token exists, said client will have access to all
110110
// handlers that are not protected by a given permission.
111111
//
112-
// Returns whether the client is authorized, and if true, the client that was authorized.
112+
// Returns the client is authorized (or nil if no client was authorized), as well as whether the token is authorized
113113
func (authorizationService *AuthorizationService) Authorize(token string, permissionsRequired []string) (client *Client, authorized bool) {
114114
if len(token) == 0 {
115115
return nil, false

0 commit comments

Comments
 (0)