Skip to content

YahooProvider

Reference doc for the `YahooProvider`.

Use this provider to authenticate with Yahoo.

import { YahooProvider } from "@openauthjs/openauth/provider/yahoo"
export default issuer({
providers: {
yahoo: YahooProvider({
clientId: "1234567890",
clientSecret: "0987654321"
})
}
})

Methods

YahooProvider

YahooProvider(config)

Parameters

Returns Provider

Create a Yahoo OAuth2 provider.

YahooProvider({
clientId: "1234567890",
clientSecret: "0987654321"
})

YahooConfig

YahooConfig.clientID

Type string

The client ID.

This is just a string to identify your app.

{
clientID: "my-client"
}

YahooConfig.clientSecret

Type string

The client secret.

This is a private key that’s used to authenticate your app. It should be kept secret.

{
clientSecret: "0987654321"
}

YahooConfig.query?

Type Record<string, string>

Any additional parameters that you want to pass to the authorization endpoint.

{
query: {
access_type: "offline",
prompt: "consent"
}
}

YahooConfig.scopes

Type string[]

A list of OAuth scopes that you want to request.

{
scopes: ["email", "profile"]
}