GitHub OAuth Client in Reader API #884
-
Currently, the GitHub reader does not support OAuth-based authentication. It also ignores Keystatic configs if given one. I can see the value of creating reader APIs for potentially a different branch than what's allowed in Keystatic, but I think the authentication config should be the same as the rest of Keystatic. EDIT: It looks like I might be using the script incorrectly - it looks like the GitHub Reader simply has no support for being used outside of an live Next app; is this true? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
The GitHub reader just accepts a GitHub token, you can get that however you'd like to. For example, you could use the token that Keystatic uses that's stored in a cookie named |
Beta Was this translation helpful? Give feedback.
-
Based on the discussion here I've created a PR to improve the docs: #886 |
Beta Was this translation helpful? Give feedback.
The GitHub reader just accepts a GitHub token, you can get that however you'd like to. For example, you could use the token that Keystatic uses that's stored in a cookie named
keystatic-gh-access-token
, a personal access token or anything else. It's not at all restricted to Next.