Skip to main content
Home

Built and signed on GitHub Actions

This package works with Browsers
This package works with Browsers
JSR Score
94%
Published
2 years ago (0.1.2)
function registerUser
registerUser(
userName: string,
path: URL | string,
): Promise<WebSocket>

Register a new user.

Examples

Example 1

document.getElementById("register")!.addEventListener("click", async (e)=> {
  e.preventDefault()
  const userName = (document.getElementById("username")! as HTMLInputElement).value
  await registerUser(userName, new URL("ws://localhost:5180/register"))
})

Parameters

userName: string

Specifies the unique user name that a new user wants. Can be an email for example

path: URL | string

a url to the register endpoint of your socketauthn api

Return Type

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.