Skip to content

feat(gotrue): add resend api to request confirmation code - #419

Open
diegofesanto wants to merge 4 commits into
masterfrom
feature/missing-resend
Open

feat(gotrue): add resend api to request confirmation code#419
diegofesanto wants to merge 4 commits into
masterfrom
feature/missing-resend

Conversation

@diegofesanto

Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce?

feature

What is the current behavior?

What is the new behavior?

  • add resend request to get confirmation code by type

Additional context

  • missing parity

@diegofesanto
diegofesanto marked this pull request as draft September 8, 2026 02:12
@diegofesanto
diegofesanto marked this pull request as ready for review September 11, 2026 00:33
@diegofesanto diegofesanto reopened this Sep 11, 2026

@Tr00d Tr00d left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Couple of feedbacks on the structure (move/rename). You did nothing wrong there, but I want the structure to evolve to something more maintainable

/// additional customization for the resend operation, such as including a CAPTCHA
/// token or specifying a redirection URL after email confirmation.
/// </summary>
public class ResendOptionsParam

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The naming could be improved. It's called OptionsParam, and the XML doc says optional parameters. There's something off.

I would rename it ResendOptions

/// <summary>
/// Parameters for the Resend API.
/// </summary>
public class ResendParam

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would avoid abbreviations, and use ResendParameters instead

@@ -0,0 +1,42 @@
using System.Text.Json.Serialization;

namespace Supabase.Gotrue;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're cluttering the root directory Gotrue/.
I want the codebase to evolve towards a UseCase/VerticalSlice structure, and I prefer Resend-specific models to be under a Resend/ folder & namespace.

@@ -0,0 +1,23 @@
using System.Text.Json.Serialization;

namespace Supabase.Gotrue;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're cluttering the root directory Gotrue/.
I want the codebase to evolve towards a UseCase/VerticalSlice structure, and I prefer Resend-specific models to be under a Resend/ folder & namespace.

/// <summary>
/// The type of resend.
/// </summary>
public enum ResendType

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I want the codebase to evolve towards a UseCase/VerticalSlice structure, and I prefer Resend-specific models to be under a Resend/ folder & namespace.
Same for Constants, we could have ResendConstants under Resend/.

@Tr00d Tr00d self-assigned this Sep 11, 2026
@Tr00d Tr00d added the feature New feature or request label Sep 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants