@ughuuu/game_server 1.0.149 → 1.0.151

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -269,7 +269,7 @@ var LobbiesApi = exports["default"] = /*#__PURE__*/function () {
269
269
 
270
270
  /**
271
271
  * Update lobby (host only)
272
- * Update lobby settings. Only the host can update the lobby via the API (returns 403 if not host). Admins can still modify lobbies from the admin console those changes are broadcast to viewers.
272
+ * Update lobby settings. Only the host can update the lobby via the API (returns 403 if not host). Admins can still modify lobbies from the admin console - those changes are broadcast to viewers.
273
273
  * @param {Number} id Lobby ID
274
274
  * @param {Object} opts Optional parameters
275
275
  * @param {module:model/UpdateLobbyRequest} [updateLobbyRequest] Lobby update parameters
@@ -299,7 +299,7 @@ var LobbiesApi = exports["default"] = /*#__PURE__*/function () {
299
299
 
300
300
  /**
301
301
  * Update lobby (host only)
302
- * Update lobby settings. Only the host can update the lobby via the API (returns 403 if not host). Admins can still modify lobbies from the admin console those changes are broadcast to viewers.
302
+ * Update lobby settings. Only the host can update the lobby via the API (returns 403 if not host). Admins can still modify lobbies from the admin console - those changes are broadcast to viewers.
303
303
  * @param {Number} id Lobby ID
304
304
  * @param {Object} opts Optional parameters
305
305
  * @param {module:model/UpdateLobbyRequest} opts.updateLobbyRequest Lobby update parameters
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ughuuu/game_server",
3
- "version": "1.0.149",
3
+ "version": "1.0.151",
4
4
  "description": "API for Game Server application ## Authentication This API uses JWT (JSON Web Tokens) with access and refresh tokens: ### Getting Tokens - **Email/Password**: POST to `/api/v1/login` with email and password - **Discord OAuth**: Use `/api/v1/auth/discord` flow - **Google OAuth**: Use `/api/v1/auth/google` flow - **Facebook OAuth**: Use `/api/v1/auth/facebook` flow - **Apple Sign In**: Use `/auth/apple` browser flow (API flow not yet implemented) Both methods return: - `access_token` - Short-lived (15 min), use for API requests - `refresh_token` - Long-lived (30 days), use to get new access tokens ### Using Tokens Include the access token in the Authorization header: ``` Authorization: Bearer <access_token> ``` ### Refreshing Tokens When your access token expires, use POST `/api/v1/refresh` with your refresh token to get a new access token. ## Endpoints All API endpoints are under `/api/v1` ",
5
5
  "license": "Unlicense",
6
6
  "main": "dist/index.js",