Natan Parmigiano
Natan Parmigiano
Explore posts from servers
BABetter Auth
Created by Natan Parmigiano on 3/7/2025 in #help
Type Error adding TwoFactor
Hey! Im currently trying to add the twoFactor plugin to my app, in the following way:
[...]
maxPasswordLength: 32,
},
plugins: [
twoFactor(),
username(),
[...]
[...]
maxPasswordLength: 32,
},
plugins: [
twoFactor(),
username(),
[...]
but im getting the following error:
Type '{ id: "two-factor"; endpoints: { enableTwoFactor: { <C extends [{ body: { password: string; }; method?: "POST" | undefined; query?: Record<string, any> | undefined; params?: Record<string, any> | undefined; request?: Request | undefined; headers?: HeadersInit | undefined; asResponse?: boolean | undefined; returnHead...' is not assignable to type 'BetterAuthPlugin' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties.
Types of property 'options' are incompatible.
Type 'TwoFactorOptions | undefined' is not assignable to type 'Record<string, any>'.
Type 'undefined' is not assignable to type 'Record<string, any>'.
Type '{ id: "two-factor"; endpoints: { enableTwoFactor: { <C extends [{ body: { password: string; }; method?: "POST" | undefined; query?: Record<string, any> | undefined; params?: Record<string, any> | undefined; request?: Request | undefined; headers?: HeadersInit | undefined; asResponse?: boolean | undefined; returnHead...' is not assignable to type 'BetterAuthPlugin' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties.
Types of property 'options' are incompatible.
Type 'TwoFactorOptions | undefined' is not assignable to type 'Record<string, any>'.
Type 'undefined' is not assignable to type 'Record<string, any>'.
2 replies
CDCloudflare Developers
Created by Natan Parmigiano on 10/19/2024 in #pages-help
Wrongfull Phishing Report
I just received the following message:
Hello,

Cloudflare received a phishing report regarding: █████████████████████████.pages.dev

The information we received was the following:

Reporter: Anonymous

Reported URLs:
https://█████████████████████████.pages.dev


Logs or Evidence of Abuse: koi url submission detected as phish


We have forwarded this complaint to your hosting provider.

To respond to this issue, please reply to [email protected].

Thanks,
The Cloudflare Team
Hello,

Cloudflare received a phishing report regarding: █████████████████████████.pages.dev

The information we received was the following:

Reporter: Anonymous

Reported URLs:
https://█████████████████████████.pages.dev


Logs or Evidence of Abuse: koi url submission detected as phish


We have forwarded this complaint to your hosting provider.

To respond to this issue, please reply to [email protected].

Thanks,
The Cloudflare Team
I have absolute certainty that the app hosted there is not a phishing app, its a simple PDF viewer, and the "Evidence of Abuse" provided seems to be absolute nonsense.. How can i appeal it?
3 replies
DTDrizzle Team
Created by Natan Parmigiano on 10/16/2024 in #help
[Solved] Aliasing a column
Is there any way to alias a column on a select? I mean an actual alias on the final query.. In starting to test out the new views support (amazing btw), I noticed a "problem".. Normally if we have colliding colum names, like for instance: users.name and posts.name, we would alias them as user_name and post_name, for example, but currently drizzle queries them as "users"."name" and "posts"."name" In the view, which, at least in SQLite, creates a view with two "name" columns (returned as name and name:1) That creates issues when filtering and joining data.. Maybe supporting the .as() function on columns for selects in general could be useful? Instead of only supporting it on sql``?
5 replies
CDCloudflare Developers
Created by Natan Parmigiano on 6/6/2024 in #pages-help
CF Pages sometimes returning index.html for a file that exists
No description
2 replies