diff --git a/internal/reddit/client.go b/internal/reddit/client.go index c1e89a3..2a2e989 100644 --- a/internal/reddit/client.go +++ b/internal/reddit/client.go @@ -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} }