cca-auth-module 0.1.26 → 0.1.27

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cca-auth-module",
3
- "version": "0.1.26",
3
+ "version": "0.1.27",
4
4
  "description": "A TypeScript project using pnpm as the package manager.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -23,7 +23,7 @@
23
23
  "@types/jsonwebtoken": "^9.0.8",
24
24
  "bcrypt": "^5.1.1",
25
25
  "cca-core": "^0.2.5",
26
- "cca-entities": "^0.2.1",
26
+ "cca-entities": "^0.2.11",
27
27
  "express": "^4.21.2",
28
28
  "jsonwebtoken": "^9.0.2",
29
29
  "reflect-metadata": "^0.1.14",
@@ -1,6 +0,0 @@
1
- import { JwtPayload } from "jsonwebtoken";
2
- export interface IDecodedToken extends JwtPayload {
3
- userId?: string;
4
- email?: string;
5
- role?: string;
6
- }
@@ -1,7 +0,0 @@
1
- import * as jwt from "jsonwebtoken";
2
- export interface IJwtConfig {
3
- accessTokenSecret: string;
4
- refreshTokenSecret: string;
5
- accessTokenExpiry: jwt.SignOptions["expiresIn"];
6
- refreshTokenExpiry: jwt.SignOptions["expiresIn"];
7
- }
@@ -1,10 +0,0 @@
1
- import { BaseRepository, IExtendedBaseRepository } from "cca-core";
2
- import { AuthEntity } from "cca-entities";
3
- import { Repository } from "typeorm";
4
- export declare class AuthRepository extends BaseRepository<AuthEntity> implements IExtendedBaseRepository<AuthEntity> {
5
- constructor(repository: Repository<AuthEntity>);
6
- findByEmail(email: string): Promise<AuthEntity | null>;
7
- create(entity: Omit<AuthEntity, "createdAt">): Promise<AuthEntity>;
8
- findByUserId(userId: string): Promise<AuthEntity | null>;
9
- logout(userId: string): Promise<void>;
10
- }