XProvider
Reference doc for the `XProvider`.
Use this provider to authenticate with X.com.
Methods
XProvider
Parameters
The config for the provider.config
XProviderConfig
Returns Provider
Create a X.com OAuth2 provider.
XProviderConfig
-
clientID
string
-
clientSecret
string
-
query?
Record
<
string
,string
>
-
scopes
string
[]
XProviderConfig.clientID
Type string
The client ID.
This is just a string to identify your app.
XProviderConfig.clientSecret
Type string
The client secret.
This is a private key that’s used to authenticate your app. It should be kept secret.
XProviderConfig.query?
Type Record
<
string
, string
>
Any additional parameters that you want to pass to the authorization endpoint.
XProviderConfig.scopes
Type string
[]
A list of OAuth scopes that you want to request.