Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@drax/identity-back

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@drax/identity-back - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

dist/routes/authRoutes.js

1

dist/graphql/resolvers/auth.resolvers.js

@@ -12,2 +12,3 @@ import AuthServiceFactory from "../../factory/AuthServiceFactory.js";

console.log(e);
throw e;
}

@@ -14,0 +15,0 @@ },

@@ -5,2 +5,3 @@ import GraphqlMerge from "./graphql/index.js";

import AuthServiceFactory from "./factory/AuthServiceFactory.js";
import { authRoutes } from "./routes/authRoutes.js";
const graphqlMergeResult = await GraphqlMerge();

@@ -12,3 +13,9 @@ const identityTypeDefs = await graphqlMergeResult.typeDefs;

const authService = AuthServiceFactory();
export { identityTypeDefs, identityResolvers, userService, roleService, authService };
export {
//Service
userService, roleService, authService,
//GQL
identityTypeDefs, identityResolvers,
//API REST
authRoutes };
/// <reference types="index.d.ts" />

4

dist/services/AuthService.js

@@ -13,4 +13,4 @@ import AuthUtils from "../utils/AuthUtils.js";

const session = '123';
const token = AuthUtils.generateToken(user._id.toString(), user.username, session);
return token;
const accessToken = AuthUtils.generateToken(user._id.toString(), user.username, session);
return { accessToken: accessToken };
}

@@ -17,0 +17,0 @@ else {

@@ -6,3 +6,3 @@ {

},
"version": "0.0.7",
"version": "0.0.8",
"description": "Identity module for user management, authentication and authorization.",

@@ -53,3 +53,3 @@ "main": "dist/index.js",

},
"gitHead": "7fb7c130ba04e9c25d45b4e1f229e7c4c2e22068"
"gitHead": "46840505094d059c06338a8dfd76937a735cf05a"
}

@@ -14,2 +14,3 @@ import AuthServiceFactory from "../../factory/AuthServiceFactory.js";

console.log(e)
throw e
}

@@ -16,0 +17,0 @@

@@ -5,2 +5,3 @@ import GraphqlMerge from "./graphql/index.js"

import AuthServiceFactory from "./factory/AuthServiceFactory.js";
import {authRoutes} from "./routes/authRoutes.js";

@@ -17,7 +18,13 @@ const graphqlMergeResult = await GraphqlMerge()

export {
//Service
userService,
roleService,
authService,
//GQL
identityTypeDefs,
identityResolvers,
userService,
roleService,
authService
//API REST
authRoutes
}

@@ -24,0 +31,0 @@

@@ -21,4 +21,4 @@ import UserService from "./UserService.js";

const session = '123'
const token = AuthUtils.generateToken(user._id.toString(), user.username, session)
return token
const accessToken = AuthUtils.generateToken(user._id.toString(), user.username, session)
return {accessToken: accessToken}
}else{

@@ -25,0 +25,0 @@ throw Error('BadCredentials')

@@ -6,3 +6,5 @@ declare const _default: {

input: any;
}) => Promise<string>;
}) => Promise<{
accessToken: string;
}>;
};

@@ -9,0 +11,0 @@ };

@@ -0,1 +1,2 @@

import { authRoutes } from "./routes/authRoutes.js";
declare const identityTypeDefs: import("@graphql-tools/utils").TypeSource;

@@ -6,3 +7,3 @@ declare const identityResolvers: import("@graphql-tools/utils").IResolvers;

declare const authService: import("./services/AuthService.js").default;
export { identityTypeDefs, identityResolvers, userService, roleService, authService };
export { userService, roleService, authService, identityTypeDefs, identityResolvers, authRoutes };
//# sourceMappingURL=index.d.ts.map

@@ -5,5 +5,7 @@ import UserService from "./UserService.js";

constructor(userService: UserService);
auth(username: string, password: string): Promise<string>;
auth(username: string, password: string): Promise<{
accessToken: string;
}>;
}
export default AuthService;
//# sourceMappingURL=AuthService.d.ts.map

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc