pilcrowOnPaper / arctic

OAuth 2.0 clients for popular providers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Facebook: Automatically added scope "identify" leads to Error

Flunsi opened this issue · comments

The error occurs when redirecting to the authorizationURL.

This causes the error : this.scope.push("identify");

Also "identify" isnt defined in https://developers.facebook.com/docs/permissions/

Its obviously a copy&paste error, because below that in the getUser()-methode, it tries to get data from discord.

	public async getUser(accessToken: string): Promise<FacebookUser> {
		const url = new URL("https://discord.com/api/users/@me");

Fixed with 0.3.5

It works. thx!