We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MiAuthで認証したトークンが利用できない。
MiAuthで認証したトークンを利用して認証が必要なAPIにアクセスができる。
トークンが不正というレスポンスが返る。(HTTP 403)
{ "error": { "message": "Authentication failed. Please ensure your token is correct.", "code": "AUTHENTICATION_FAILED", "id": "b0a7f5f8-dc2f-4171-b91f-de88ad238e14", "kind": "client" } }
Misskey v12.38.1
The text was updated successfully, but these errors were encountered:
謎
Sorry, something went wrong.
src/server/api/authenticate.ts 内の
src/server/api/authenticate.ts
const accessToken = await AccessTokens.findOne({ hash: token.toLowerCase() });
憶測で申し訳ないのですが、多分 token.toLowerCase() で小文字でデータベースを検索しているのでMiAuthで作成したトークンが見つからないのではないかと思われます
token.toLowerCase()
6b2c289
Successfully merging a pull request may close this issue.
💡 Summary
MiAuthで認証したトークンが利用できない。
🙂 Expected Behavior
MiAuthで認証したトークンを利用して認証が必要なAPIにアクセスができる。
トークンが不正というレスポンスが返る。(HTTP 403)
📝 Steps to Reproduce
📌 Environment
Misskey v12.38.1
The text was updated successfully, but these errors were encountered: