Skip to content
This repository has been archived by the owner on Sep 21, 2023. It is now read-only.

403: Request had insufficient authentication scopes. #548

Open
pguardiario opened this issue Nov 3, 2022 · 0 comments
Open

403: Request had insufficient authentication scopes. #548

pguardiario opened this issue Nov 3, 2022 · 0 comments

Comments

@pguardiario
Copy link

Does anyone know what scopes I need to access this api endpoint?
https://gmail.googleapis.com/gmail/v1/users/{userId}/messages

const login = useGoogleLogin({
    onSuccess: async codeResponse => {
      let {code} = codeResponse
      const {data} = await axios.post('http://localhost:3000/auth/google', {
        code,
      });
      setAccessToken(data.access_token)
    },
    flow: 'auth-code',
    scope: "???",
});

Also how I can get userId for the oauth user. Thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant