@suluk/better-auth - v0.2.0
    Preparing search index...

    Function withRedirectTo

    • Append a (guarded) redirectTo to an href — e.g. point "/login" at the page the user was on, so post-auth returns there. A non-safe target is dropped (the href is returned unchanged).

      Parameters

      • href: string
      • redirectTo: string | null | undefined

      Returns string