Add userinfo email scope for gcalendar plugin auth refresh to resolve 401
Signed-off-by: Benjamin <benjamin.mccain@onepeloton.com>
This commit is contained in:
@@ -25,7 +25,10 @@ export const useSignIn = () => {
|
||||
const signIn = useCallback(
|
||||
async (optional = false) => {
|
||||
const token = await authApi.getAccessToken(
|
||||
'https://www.googleapis.com/auth/calendar.readonly',
|
||||
[
|
||||
'https://www.googleapis.com/auth/calendar.readonly',
|
||||
'https://www.googleapis.com/auth/userinfo.email',
|
||||
],
|
||||
{
|
||||
optional,
|
||||
instantPopup: !optional,
|
||||
|
||||
Reference in New Issue
Block a user