Skip to content
New issue

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

認証エンドポイントの導入に向けてfetchをラップする #87

Closed
totegamma opened this issue May 8, 2023 · 1 comment
Closed
Milestone

Comments

@totegamma
Copy link
Owner

今fetchがそのままいろんな場所で書かれていて、トークン等のcredentialsをそこに配って回るのは大変
認証方式が変わった時に変更する場所が1箇所で良いようにしたい。

Reactにおけるベストプラクティスはわかってないのだけど、場合によってはRepositoryサービスがあるといいかも?

@totegamma
Copy link
Owner Author

post/putするリクエストのヘッダにcontent-type: application/jsonを設定したいよ(遺言)

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

No branches or pull requests

1 participant