📝 docs: complete documentation for auth module
Some checks failed
Integration Tests / integration-tests (pull_request) Failing after 42s

This commit is contained in:
2026-03-11 10:07:33 +07:00
parent da74f5e3e1
commit 864a919680
8 changed files with 242 additions and 29 deletions

View File

@ -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",