Skip to content

Conversation

@brionmario
Copy link
Member

@brionmario brionmario commented Nov 4, 2025

Purpose

This PR adds comprehensive Thunder platform support and render props functionality to the SignUp component, bringing it to feature parity with the SignIn component. The implementation enhances developer experience by providing flexible UI customization options while maintaining seamless integration with Asgardeo's Thunder authentication platform.

Usage Examples

Default
<SignUp onComplete={() => navigate('/dashboard')} />
Render Props (New Pattern)
<SignUp onComplete={() => navigate('/dashboard')}>
  {({values, errors, handleInputChange, handleSubmit, isLoading, components}) => (
    <form onSubmit={(e) => {
      e.preventDefault();
      handleSubmit(components?.[0], values);
    }}>
      <input
        name="email"
        value={values.email || ''}
        onChange={(e) => handleInputChange('email', e.target.value)}
        className="custom-input-style"
      />
      {errors.email && <span className="error">{errors.email}</span>}
      
      <button type="submit" disabled={isLoading}>
        {isLoading ? 'Signing up...' : 'Sign Up'}
      </button>
    </form>
  )}
</SignUp>

Related Issues

Related PRs

  • N/A

Checklist

  • Followed the CONTRIBUTING guidelines.
  • Manual test round performed and verified.
  • Documentation provided. (Add links if there are any)
  • Unit tests provided. (Add links if there are any)

Security checks

@asgardeo-github-bot
Copy link

🦋 Changeset detected

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

@brionmario brionmario merged commit e16d876 into asgardeo:main Nov 4, 2025
3 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants