mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
feat(backend): implement api keys; rename token -> verificationToken in paste creation api
api keys can bypass authentication and captchas/verification
This commit is contained in:
@@ -132,9 +132,9 @@
|
||||
data.auth?.cf_turnstile_site_key &&
|
||||
window.turnstile
|
||||
) {
|
||||
const token = window.turnstile.getResponse();
|
||||
if (token) {
|
||||
params.append('token', token);
|
||||
const verificationToken = window.turnstile.getResponse();
|
||||
if (verificationToken) {
|
||||
params.append('verificationToken', verificationToken);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user