Skip to content
Discussion options

You must be logged in to vote

Yup, I've finally figured it out. Turns out Yahoo has their own well-known which solves everything.

Here's my updated [...nextauth].ts

export const authOptions: AuthOptions = {
	debug: true,
	// Configure one or more authentication providers
	providers: [
		{
			id: 'yahoo',
			name: 'Yahoo',
			type: 'oauth',
			clientId: YAHOO_CLIENT_ID,
			clientSecret: YAHOO_CLIENT_SECRET,
			wellKnown:
				'https://api.login.yahoo.com/.well-known/openid-configuration',
			authorization: {
				params: {
					client_id: YAHOO_CLIENT_ID,
					redirect_uri: REDIRECT_URI,
					response_type: 'code',
				},
			},
			profile(profile) {
				return {
					id: profile.sub,
					name: profile.name,
					email: …

Replies: 4 comments 11 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
10 replies
@jcobert
Comment options

@markjoeljimenez
Comment options

Answer selected by markjoeljimenez
@jcobert
Comment options

@markjoeljimenez
Comment options

@markjoeljimenez
Comment options

@jcobert
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Kojon74
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
8 participants
Converted from issue

This discussion was converted from issue #769 on December 07, 2020 16:52.