Skip to content

[Feature]: Extract login functionality for exporting #12

@PetN5026

Description

@PetN5026

Problem statement

Currently Login.tsx holds the functionality of the logic to connect to the backend login endpoint. This causes anyone using the package to be unable to adjust the UI for the login form.

Proposed solution

As of right now, handlePasskeyLogin(64), login(105), register(131), sendMagicLink(161),sendPhoneOTP(179) can probably be extracted into maybe the util file. I think these functions will need a new parameter, and have the token pass to the backend to register?

Alternatives considered

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions