From 3fbed1c9287ea2d2361aa673e2addba2c8f95f86 Mon Sep 17 00:00:00 2001 From: Lakhan Samani Date: Tue, 2 Jan 2024 07:12:28 +0530 Subject: [PATCH] Update readme.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 70b56f5..5510d39 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ const authRef = new Authorizer({ }); if (data && data.access_token) { // get user profile using the access token - const user = await authorizerRef.getProfile({ + const { data: user, errors } = await authorizerRef.getProfile({ Authorization: `Bearer ${res.access_token}`, });