pilcrowOnPaper / arctic

OAuth 2.0 clients for popular providers

Home Page:https://arctic-reddit.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug/Github]: Request forbidden by administrative rules.

dinwwwh opened this issue · comments

image

Indicate arctic forgot add user-agent to header inside getUser method

      const userGithub = (await fetch('https://api.github.com/user', {
        headers: {
          Authorization: `Bearer ${tokens.accessToken}`,
          'user-agent': 'arctic',
        },
      }).then(async (res) => res.json())) as any

This was an issue with Oslo, and it should be fixed with the latest version 0.4.1