📝 docs: complete documentation for auth module
Some checks failed
Integration Tests / integration-tests (pull_request) Failing after 42s
Some checks failed
Integration Tests / integration-tests (pull_request) Failing after 42s
This commit is contained in:
@ -10,9 +10,8 @@ export interface ClientInfoHeader {
|
||||
ip: string;
|
||||
}
|
||||
|
||||
export const getUserHeaderInformation = (ctx: Context): UserHeaderInformation => {
|
||||
const clientInfoHeader =
|
||||
(JSON.parse(ctx.request.headers.get("x-client-info") as string) as ClientInfoHeader) ?? ("unknown" as string);
|
||||
export const getUserHeaderInformation = (clientInfo: string): UserHeaderInformation => {
|
||||
const clientInfoHeader = (JSON.parse(clientInfo) as ClientInfoHeader) ?? ("unknown" as string);
|
||||
|
||||
const userHeaderInformation = {
|
||||
ip: clientInfoHeader.ip ?? "unknown",
|
||||
|
||||
Reference in New Issue
Block a user