mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-13 07:27:43 +00:00
tighten authenticated client params
This commit is contained in:
parent
dc54bb76df
commit
ca8fc6e991
1 changed files with 4 additions and 0 deletions
|
@ -124,6 +124,10 @@ func (rc *Client) NewAuthenticatedClient(redditId, refreshToken, accessToken str
|
|||
panic("requires a redditId")
|
||||
}
|
||||
|
||||
if accessToken == "" {
|
||||
panic("requires an access token")
|
||||
}
|
||||
|
||||
return &AuthenticatedClient{rc, redditId, refreshToken, accessToken}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue