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

ユーザーがIDとパスワードを使用して登録・ログイン出来るようにする #291

Open
FlowingSPDG opened this issue Aug 13, 2023 · 1 comment
Labels
front Front-end(React) related issue.
Projects

Comments

@FlowingSPDG
Copy link
Owner

No description provided.

@FlowingSPDG FlowingSPDG added the front Front-end(React) related issue. label Aug 13, 2023
@FlowingSPDG FlowingSPDG added this to Front in v0.2.0 Aug 13, 2023
@FlowingSPDG
Copy link
Owner Author

登録API:
以下のエンドポイントにJSONを投げるとjwtが返ってくる
エンドポイント:http://localhost:8080/api/v1/register
リクエスト:

{
  "name": "なまえ", // 名前
  "steamid": 76561198072054549, // SteamID64、現状は特に認証をかけていない
  "password": "password" // パスワード
}

ログインAPI:
以下のエンドポイントにJSONを投げるとjwtが返ってくる
エンドポイント:http://localhost:8080/api/v1/login
リクエスト:

{
  "steamid": 76561198072054549, // SteamID64
  "password": "password" // パスワード
}

共通レスポンス:

{
"token": "eyJhbGciOiJIUzI1NiIsInR5xxxxxx.xxxxxxxxxxxxxxxx.d2Sek9yBYuhNH8QVet6xxxxxxxxxx" // こいつがJWT
}

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
front Front-end(React) related issue.
Projects
v0.2.0
  
Front
Development

No branches or pull requests

1 participant