Skip to content
⌘K
Explore
Download
Docs
Sign in
Sign up
flagon-io
/
g1t
public
Star
0
Overview
Code
Issues
Pull requests
Workflows
Deployments
Insights
Files
Commits
Branches
Tags
Releases
Compare
75c6704f6552d3aa472e1387db02117577272c1d
g1t
/
…
/
apps
/
web
/
app
/
lib
/
registration.server.ts
4 lines
259 bytes
Code
Blame
Raw
1
/** Who is asking, for identity's rate limits: the visitor's address. */
2
export
function
clientKey
(
request
:
Request
):
string
|
null
{
3
return
request
.
headers
.
get
(
"
cf-connecting-ip
"
)
??
request
.
headers
.
get
(
"
x-forwarded-for
"
)?.
split
(
"
,
"
)[
0
]?.
trim
()
??
null
;
4
}