@furystack/http-api
Advanced tools
Comparing version 0.4.3 to 0.4.4
@@ -77,2 +77,10 @@ "use strict"; | ||
serverResponse.setHeader("Set-Cookie", `${this.options.cookieName}=${sessionId}; Path=/; Secure; HttpOnly`); | ||
this.options.injector.GetInstance(core_1.LoggerCollection).Information({ | ||
scope: IdentityService.LogScope, | ||
message: `User '${user.Username}' logged in.`, | ||
data: { | ||
user, | ||
sessionId, | ||
}, | ||
}); | ||
} | ||
@@ -91,3 +99,3 @@ return user; | ||
serverResponse.setHeader("Set-Cookie", `${this.options.cookieName}=${sessionId}; Path=/; Secure; HttpOnly`); | ||
this.options.injector.GetInstance(core_1.LoggerCollection).Verbose({ | ||
this.options.injector.GetInstance(core_1.LoggerCollection).Information({ | ||
scope: IdentityService.LogScope, | ||
@@ -94,0 +102,0 @@ message: `User '${user.Username}' logged in with '${service.name}' external service.`, |
{ | ||
"name": "@furystack/http-api", | ||
"version": "0.4.3", | ||
"version": "0.4.4", | ||
"description": "HTTP Api FuryStack package", | ||
@@ -81,2 +81,2 @@ "main": "dist/index.js", | ||
"typings": "./dist/index.d.ts" | ||
} | ||
} |
@@ -72,2 +72,10 @@ import { Constructable, InMemoryStore, IPhysicalStore, IUser, LoggerCollection, visitorUser } from "@furystack/core"; | ||
serverResponse.setHeader("Set-Cookie", `${this.options.cookieName}=${sessionId}; Path=/; Secure; HttpOnly`); | ||
this.options.injector.GetInstance(LoggerCollection).Information({ | ||
scope: IdentityService.LogScope, | ||
message: `User '${user.Username}' logged in.`, | ||
data: { | ||
user, | ||
sessionId, | ||
}, | ||
}); | ||
} | ||
@@ -85,3 +93,3 @@ return user; | ||
serverResponse.setHeader("Set-Cookie", `${this.options.cookieName}=${sessionId}; Path=/; Secure; HttpOnly`); | ||
this.options.injector.GetInstance(LoggerCollection).Verbose({ | ||
this.options.injector.GetInstance(LoggerCollection).Information({ | ||
scope: IdentityService.LogScope, | ||
@@ -101,3 +109,3 @@ message: `User '${user.Username}' logged in with '${service.name}' external service.`, | ||
message: `Error during external login with '${service.name}': ${error.message}`, | ||
data: {error}, | ||
data: { error }, | ||
}); | ||
@@ -104,0 +112,0 @@ } |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
125310
1789