From ae6ae33d602aab48ccb7b685a14ba685956fed60 Mon Sep 17 00:00:00 2001 From: atymic Date: Wed, 7 Feb 2024 14:06:21 +0100 Subject: [PATCH] fix: figma token --- src/Figma/FigmaExtendSocialite.php | 2 +- src/Figma/Provider.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Figma/FigmaExtendSocialite.php b/src/Figma/FigmaExtendSocialite.php index 7b4ca98bc..5f3f0cb09 100644 --- a/src/Figma/FigmaExtendSocialite.php +++ b/src/Figma/FigmaExtendSocialite.php @@ -8,6 +8,6 @@ class FigmaExtendSocialite { public function handle(SocialiteWasCalled $socialiteWasCalled): void { - $socialiteWasCalled->extendSocialite('Figma', Provider::class); + $socialiteWasCalled->extendSocialite('figma', Provider::class); } } diff --git a/src/Figma/Provider.php b/src/Figma/Provider.php index 2bd8afc99..647bfacbe 100644 --- a/src/Figma/Provider.php +++ b/src/Figma/Provider.php @@ -38,7 +38,7 @@ protected function getUserByToken($token) { $response = $this->getHttpClient()->get('https://api.figma.com/v1/me', [ RequestOptions::HEADERS => [ - 'X-FIGMA-TOKEN' => $token, + 'Authorization' => 'Bearer '.$token, ], ]);