tighten authenticated client params

This commit is contained in:
Andre Medeiros 2022-05-25 19:28:41 -04:00
parent dc54bb76df
commit ca8fc6e991

View file

@ -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}
}