Skip to content

Instantly share code, notes, and snippets.

@TheUntraceable
Last active December 2, 2025 22:30
Show Gist options
  • Select an option

  • Save TheUntraceable/03e9c185182a6a08c819a99091d262bc to your computer and use it in GitHub Desktop.

Select an option

Save TheUntraceable/03e9c185182a6a08c819a99091d262bc to your computer and use it in GitHub Desktop.

πŸ“ better-auth-template

  • πŸ“ actions
    • πŸ“„ get-backup-codes.ts
    • πŸ“„ update-profile-picture.ts
  • πŸ“ app
    • πŸ“ account
      • πŸ“ delete
        • πŸ“ _components
          • πŸ“„ delete-account-form.tsx
        • πŸ“„ page.tsx
      • πŸ“ invitations
        • πŸ“„ page.tsx
      • πŸ“ security
        • πŸ“ _components
          • πŸ“„ delete-account-dialog.tsx
          • πŸ“„ delete-confirmation-form.tsx
          • πŸ“„ security-settings-client.tsx
        • πŸ“ audit
          • πŸ“ _components
            • πŸ“„ audit-card.tsx
          • πŸ“„ page.tsx
        • πŸ“ passkeys
          • πŸ“ _components
            • πŸ“„ delete-passkey-dialog.tsx
            • πŸ“„ edit-passkey-name-dialog.tsx
            • πŸ“„ empty-state.tsx
            • πŸ“„ passkey-card.tsx
            • πŸ“„ passkeys-client-list.tsx
            • πŸ“„ register-passkey-button.tsx
          • πŸ“„ page.tsx
        • πŸ“ sessions
          • πŸ“ _components
            • πŸ“„ revoke-all-sessions-button.tsx
            • πŸ“„ revoke-other-sessions-button.tsx
            • πŸ“„ revoke-session-button.tsx
            • πŸ“„ session-card.tsx
          • πŸ“„ page.tsx
        • πŸ“ two-factor
          • πŸ“ _components
            • πŸ“„ backup-codes-step.tsx
            • πŸ“„ disable-two-factor.tsx
            • πŸ“„ enable-two-factor-form.tsx
            • πŸ“„ otp-verify-step.tsx
            • πŸ“„ qr-code-step.tsx
            • πŸ“„ regenerate-backup-codes.tsx
            • πŸ“„ two-factor-configure-form.tsx
            • πŸ“„ two-factor-status-card.tsx
            • πŸ“„ view-backup-codes.tsx
          • πŸ“„ page.tsx
        • πŸ“„ page.tsx
      • πŸ“ settings
        • πŸ“„ page.tsx
      • πŸ“„ layout.tsx
      • πŸ“„ loading.tsx
      • πŸ“„ page.tsx
    • πŸ“ api
      • πŸ“ auth
        • πŸ“ [...all]
          • πŸ“„ route.ts
    • πŸ“ auth
      • πŸ“ forgot-password
        • πŸ“ _components
          • πŸ“„ email-request-form.tsx
          • πŸ“„ forgot-password-form.tsx
          • πŸ“„ reset-password-form.tsx
        • πŸ“„ page.tsx
      • πŸ“ login
        • πŸ“ _components
          • πŸ“„ login-form.tsx
          • πŸ“„ otp-request-form.tsx
          • πŸ“„ passkey-login-button.tsx
          • πŸ“„ password-login-form.tsx
        • πŸ“ 2fa
          • πŸ“ _components
            • πŸ“„ backup-code-verify-form.tsx
            • πŸ“„ totp-verify-form.tsx
            • πŸ“„ two-factor-form.tsx
          • πŸ“„ page.tsx
        • πŸ“„ page.tsx
      • πŸ“ register
        • πŸ“ _components
          • πŸ“„ register-form.tsx
        • πŸ“„ page.tsx
      • πŸ“ sso
        • πŸ“ _components
          • πŸ“„ sso-login-form.tsx
        • πŸ“„ page.tsx
      • πŸ“„ layout.tsx
      • πŸ“„ page.tsx
    • πŸ“ goodbye
      • πŸ“„ page.tsx
    • πŸ“ organizations
      • πŸ“ [organizationSlug]
        • πŸ“ billing
          • πŸ“ _components
            • πŸ“„ benefits-list.tsx
            • πŸ“„ billing-actions.tsx
            • πŸ“„ customer-stats.tsx
            • πŸ“„ manage-billing.tsx
            • πŸ“„ orders-table.tsx
            • πŸ“„ plan-hero-card.tsx
            • πŸ“„ subscriptions-table.tsx
            • πŸ“„ upgrade-plan-button.tsx
          • πŸ“„ page.tsx
        • πŸ“ invitations
          • πŸ“ _components
            • πŸ“„ accept-invitation-button.tsx
            • πŸ“„ cancel-invitation-button.tsx
            • πŸ“„ invitation-card.tsx
            • πŸ“„ reject-invitation-button.tsx
          • πŸ“„ page.tsx
        • πŸ“ members
          • πŸ“ _components
            • πŸ“„ members-table.tsx
          • πŸ“„ loading.tsx
          • πŸ“„ page.tsx
        • πŸ“ roles
          • πŸ“ _components
            • πŸ“„ create-role-dialog.tsx
            • πŸ“„ edit-role-dialog.tsx
            • πŸ“„ roles-manager.tsx
            • πŸ“„ roles-table.tsx
          • πŸ“„ page.tsx
        • πŸ“ settings
          • πŸ“ _components
            • πŸ“„ delete-organization-dialog.tsx
            • πŸ“„ edit-organization-name.tsx
            • πŸ“„ existing-sso-providers.tsx
            • πŸ“„ organization-image-uploader.tsx
            • πŸ“„ provider-type-selection.tsx
            • πŸ“„ saml-connection-form.tsx
            • πŸ“„ sso-connection-form.tsx
            • πŸ“„ sso-management-tabs.tsx
          • πŸ“„ loading.tsx
          • πŸ“„ page.tsx
        • πŸ“ teams
          • πŸ“ [teamId]
            • πŸ“„ loading.tsx
            • πŸ“„ page.tsx
          • πŸ“„ loading.tsx
          • πŸ“„ page.tsx
        • πŸ“„ loading.tsx
        • πŸ“„ page.tsx
      • πŸ“„ layout.tsx
      • πŸ“„ page.tsx
    • πŸ“ success
      • πŸ“„ page.tsx
    • πŸ“„ layout.tsx
    • πŸ“„ page.tsx
    • πŸ“„ providers.tsx
  • πŸ“ components
    • πŸ“ auth
      • πŸ“„ change-password-form.tsx
      • πŸ“„ controlled-email-input.tsx
      • πŸ“„ controlled-input.tsx
      • πŸ“„ controlled-otp-input.tsx
      • πŸ“„ controlled-password-input.tsx
      • πŸ“„ editable-email-input.tsx
      • πŸ“„ editable-name-input.tsx
      • πŸ“„ form-submit-button.tsx
      • πŸ“„ logout-button.tsx
      • πŸ“„ otp-input.tsx
      • πŸ“„ otp-verify-form.tsx
      • πŸ“„ password-confirmation-form.tsx
      • πŸ“„ password-input.tsx
      • πŸ“„ profile-picture-uploader.tsx
      • πŸ“„ profile-sidebar.tsx
      • πŸ“„ resend-control.tsx
      • πŸ“„ verify-email-dialog.tsx
    • πŸ“ organization
      • πŸ“„ add-member-card.tsx
      • πŸ“„ add-member-form.tsx
      • πŸ“„ add-member-to-team-dialog.tsx
      • πŸ“„ create-organization-dialog.tsx
      • πŸ“„ create-team-dialog.tsx
      • πŸ“„ invite-member-dialog.tsx
      • πŸ“„ member-card.tsx
      • πŸ“„ organization-selector.tsx
      • πŸ“„ organization-sidebar.tsx
      • πŸ“„ role-multiselect.tsx
      • πŸ“„ team-card.tsx
      • πŸ“„ team-members-empty-state.tsx
      • πŸ“„ teams-empty-state.tsx
    • πŸ“ ui
      • πŸ“„ button.tsx
      • πŸ“„ card.tsx
      • πŸ“„ command.tsx
      • πŸ“„ dialog.tsx
      • πŸ“„ dropdown-menu.tsx
      • πŸ“„ input.tsx
      • πŸ“„ multi-select.tsx
      • πŸ“„ popover.tsx
      • πŸ“„ select.tsx
      • πŸ“„ separator.tsx
      • πŸ“„ sheet.tsx
      • πŸ“„ sidebar.tsx
      • πŸ“„ skeleton.tsx
      • πŸ“„ table.tsx
      • πŸ“„ tooltip.tsx
      • πŸ“„ visually-hidden.tsx
    • πŸ“„ faq.tsx
    • πŸ“„ user-dropdown.tsx
  • πŸ“ config
    • πŸ“„ fonts.ts
    • πŸ“„ site.ts
  • πŸ“ emails
    • πŸ“„ delete-account-verification.tsx
    • πŸ“„ email-change-verification.tsx
    • πŸ“„ reset-password-email.tsx
    • πŸ“„ signin-otp-email.tsx
    • πŸ“„ verification-email.tsx
  • πŸ“ lib
    • πŸ“ hooks
      • πŸ“„ use-debounced-save.ts
      • πŸ“„ use-loading-callback.ts
      • πŸ“„ use-mobile.ts
    • πŸ“ plugin
      • πŸ“ audit
        • πŸ“„ client.ts
        • πŸ“„ index.ts
        • πŸ“„ server.ts
      • πŸ“ overrides
        • πŸ“„ client.ts
        • πŸ“„ index.ts
        • πŸ“„ server.ts
    • πŸ“ utils
      • πŸ“„ admin.ts
      • πŸ“„ currency.ts
      • πŸ“„ date.ts
      • πŸ“„ download.ts
      • πŸ“„ organization.ts
      • πŸ“„ performance.ts
      • πŸ“„ string.ts
      • πŸ“„ toast.ts
    • πŸ“„ auth-client.ts
    • πŸ“„ auth.ts
    • πŸ“„ db.ts
    • πŸ“„ permissions.ts
    • πŸ“„ session.ts
    • πŸ“„ utils.ts
  • πŸ“ schemas
    • πŸ“„ auth.ts
  • πŸ“ scripts
    • πŸ“„ compile-all-pages.ts
    • πŸ“„ create-admin-user.ts
    • πŸ“„ line-count.ts
    • πŸ“„ view-file-tree.ts
  • πŸ“ styles
    • πŸ“„ globals.css
  • πŸ“ types
    • πŸ“„ organization.ts
  • πŸ“„ .env
  • πŸ“„ .env.example
  • πŸ“„ .gitignore
  • πŸ“„ biome.jsonc
  • πŸ“„ components.json
  • πŸ“„ LICENSE.md
  • πŸ“„ next-env.d.ts
  • πŸ“„ next.config.js
  • πŸ“„ package.json
  • πŸ“„ postcss.config.js
  • πŸ“„ README.md
  • πŸ“„ tailwind.config.js
  • πŸ“„ tsconfig.json
  • πŸ“„ tsconfig.tsbuildinfo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment