@tekcify/auth-backend 2.2.10 → 2.2.11

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.
Files changed (2) hide show
  1. package/dist/security.js +5 -5
  2. package/package.json +1 -1
package/dist/security.js CHANGED
@@ -183,7 +183,7 @@ async function registerPasskey(accessToken, dto) {
183
183
  return response.json();
184
184
  }
185
185
  async function listPasskeys(accessToken) {
186
- const response = await fetch(`${AUTH_SERVER_URL}/api/auth/passkeys`, {
186
+ const response = await fetch(`${AUTH_SERVER_URL}/api/auth/passkey`, {
187
187
  method: 'GET',
188
188
  headers: {
189
189
  Authorization: `Bearer ${accessToken}`,
@@ -199,7 +199,7 @@ async function listPasskeys(accessToken) {
199
199
  return response.json();
200
200
  }
201
201
  async function deletePasskey(accessToken, credentialId) {
202
- const response = await fetch(`${AUTH_SERVER_URL}/api/auth/passkeys/${credentialId}`, {
202
+ const response = await fetch(`${AUTH_SERVER_URL}/api/auth/passkey/${credentialId}`, {
203
203
  method: 'DELETE',
204
204
  headers: {
205
205
  Authorization: `Bearer ${accessToken}`,
@@ -214,7 +214,7 @@ async function deletePasskey(accessToken, credentialId) {
214
214
  }
215
215
  }
216
216
  async function renamePasskey(accessToken, credentialId, dto) {
217
- const response = await fetch(`${AUTH_SERVER_URL}/api/auth/passkeys/${credentialId}/rename`, {
217
+ const response = await fetch(`${AUTH_SERVER_URL}/api/auth/passkey/${credentialId}/rename`, {
218
218
  method: 'PUT',
219
219
  headers: {
220
220
  Authorization: `Bearer ${accessToken}`,
@@ -292,7 +292,7 @@ async function logout(accessToken) {
292
292
  }
293
293
  }
294
294
  async function listSocialProviders(accessToken) {
295
- const response = await fetch(`${AUTH_SERVER_URL}/api/auth/social`, {
295
+ const response = await fetch(`${AUTH_SERVER_URL}/api/auth/account/social`, {
296
296
  method: 'GET',
297
297
  headers: {
298
298
  Authorization: `Bearer ${accessToken}`,
@@ -332,7 +332,7 @@ async function getSecurityActivities(accessToken, query = {}) {
332
332
  return response.json();
333
333
  }
334
334
  async function disconnectSocialProvider(accessToken, provider) {
335
- const response = await fetch(`${AUTH_SERVER_URL}/api/auth/social/${provider}`, {
335
+ const response = await fetch(`${AUTH_SERVER_URL}/api/auth/account/social/${provider}`, {
336
336
  method: 'DELETE',
337
337
  headers: {
338
338
  Authorization: `Bearer ${accessToken}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tekcify/auth-backend",
3
- "version": "2.2.10",
3
+ "version": "2.2.11",
4
4
  "description": "Backend authentication helpers for Tekcify Auth. Provides middleware, guards, and utilities for validating JWT tokens and protecting API routes in NestJS and Express applications.",
5
5
  "author": "Tekcify",
6
6
  "main": "./dist/index.js",