{"id":22253036,"url":"https://github.com/plusauth/plusauth-web","last_synced_at":"2025-07-28T05:32:23.252Z","repository":{"id":57137339,"uuid":"264040970","full_name":"PlusAuth/plusauth-web","owner":"PlusAuth","description":"Authorization utility to be used in PlusAuth rendered views","archived":false,"fork":false,"pushed_at":"2023-12-06T01:47:33.000Z","size":2630,"stargazers_count":3,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-01T06:38:12.552Z","etag":null,"topics":["plusauth","typescript","typescript-library"],"latest_commit_sha":null,"homepage":"https://plusauth.github.io/plusauth-web/classes/PlusAuthWeb.html","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PlusAuth.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-14T22:40:04.000Z","updated_at":"2023-02-14T06:45:54.000Z","dependencies_parsed_at":"2023-02-18T18:15:53.629Z","dependency_job_id":null,"html_url":"https://github.com/PlusAuth/plusauth-web","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PlusAuth%2Fplusauth-web","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PlusAuth%2Fplusauth-web/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PlusAuth%2Fplusauth-web/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PlusAuth%2Fplusauth-web/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PlusAuth","download_url":"https://codeload.github.com/PlusAuth/plusauth-web/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227869728,"owners_count":17832247,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["plusauth","typescript","typescript-library"],"created_at":"2024-12-03T07:15:56.134Z","updated_at":"2024-12-03T07:15:56.610Z","avatar_url":"https://github.com/PlusAuth.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @plusauth/web\nPlusAuth helper utility intended to use in browsers.\n\n## Table of Contents\n1. [Installation](#installation)\n2. [Usage](#usage)\n3. [Docs](#docs)\n\n\n## Installation\nFrom PlusAuth CDN (Make sure to check version):\n```html\n\u003c!-- Latest release --\u003e\n\u003cscript src=\"https://unpkg.com/@plusauth/web@0.3.1/dist/plusauth-web.umd.js\"\u003e\u003c/script\u003e\n```\n\nWith npm:\n```shell script\n$ npm install @plusauth/web\n```\n\nor with yarn\n```shell script\n$ yarn add @plusauth/web\n```\n\n# Usage\n\n## CDN Usage\nThe library will be exposed to global as `plusauthweb`\n\nInitialize it like following:\n```js\nconst plusAuth = new plusauthweb.PlusAuthWeb('https://\u003cYOUR_TENANT_ID\u003e.plusauth.com')\n\n// access auth methods\nplusAuth.auth.signIn({ username: 'test', password: 'test' })\n\n// access mfa methods\nplusAuth.mfa.validateCode('CODE', plusauthweb.MFACodeType.SMS)\n```\n\n## NPM Usage\n```js\nimport { PlusAuthWeb, MFACodeType } from '@plusauth/web'\n\nconst plusAuth = new PlusAuthWeb('https://\u003cYOUR_TENANT_ID\u003e.plusauth.com')\n\n// access auth methods\nplusAuth.auth.signIn({ username: 'test', password: 'test' })\n\n// access mfa methods\nplusAuth.mfa.validateCode('CODE', MFACodeType.SMS)\n```\n\n# Docs\nFor API docs visit [here](https://plusauth.github.io/plusauth-web/classes/plusauthweb.html)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplusauth%2Fplusauth-web","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplusauth%2Fplusauth-web","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplusauth%2Fplusauth-web/lists"}