capacitor-auth-manager 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/Readme.md +31 -0
- package/dist/esm/definitions.d.ts +0 -0
- package/dist/esm/definitions.js +2 -0
- package/dist/esm/definitions.js.map +1 -0
- package/dist/esm/index.d.ts +0 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/web.d.ts +0 -0
- package/dist/esm/web.js +2 -0
- package/dist/esm/web.js.map +1 -0
- package/dist/plugin.cjs.js +3 -0
- package/dist/plugin.cjs.js.map +1 -0
- package/dist/plugin.js +7 -0
- package/dist/plugin.js.map +1 -0
- package/package.json +86 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Zaions
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/Readme.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Capacitor Auth Manager
|
|
2
|
+
|
|
3
|
+
A comprehensive "Auth Manager" plugin for Capacitor that provides secure, type-safe, and framework-independent implementation for authentication using "Firebase Auth, Google Auth, Apple Auth, Microsoft Auth, Facebook Auth, Github Auth, Slack Auth, Linkedin Auth, Email Magic Link Auth, SMS Auth, Email/Phone/Username + Password Auth, Email Code Auth, Biometric Auth (for biometric auth make sure to use our plugin 'https://www.npmjs.com/package/capacitor-biometric-authentication', mean use this to get th biometric functionality which we have implemented for android, ios and web and rest handle here that we need to handle for this plugin)" access across Android, iOS and Web platforms.
|
|
4
|
+
|
|
5
|
+
## Main Requirements
|
|
6
|
+
|
|
7
|
+
need to implement, authentication using "Firebase Auth, Google Auth, Apple Auth, Microsoft Auth, Facebook Auth, Github Auth, Slack Auth, Linkedin Auth, Email Magic Link Auth, SMS Auth, Email/Phone/Username + Password Auth, Email Code Auth, Biometric Auth" for android, IOS and web app using capacitor framework and native sdks/apis, like for google use google direct api, for slack use slack api, for linkedin use linkedin api, so on and so forth.
|
|
8
|
+
we should not use any unofficial package for any of it, and keep it as much framework independant as possible
|
|
9
|
+
and we should provide a "Subscribable Auth state" & provide all the options for each and every auth that their providers provide through their native sdk/api to end user
|
|
10
|
+
|
|
11
|
+
each and every mentioned auth service/option, should be easily configurable and with all the options that their provider provides
|
|
12
|
+
|
|
13
|
+
the solution should be fully type safe, framework independant, secure, highly performant, and should use all the bst coding practices and standards.
|
|
14
|
+
|
|
15
|
+
### Package Info
|
|
16
|
+
|
|
17
|
+
package id: com.zaions.cap_auth_manager
|
|
18
|
+
|
|
19
|
+
package name: capacitor auth manager
|
|
20
|
+
|
|
21
|
+
### developer and company info
|
|
22
|
+
|
|
23
|
+
name: Ahsan Mahmood
|
|
24
|
+
developer website: https://aoneahsan.com
|
|
25
|
+
company: Zaions
|
|
26
|
+
company website: https://zaions.com
|
|
27
|
+
github repo url: https://github.com/aoneahsan/capacitor-auth-manager
|
|
28
|
+
npm package url: https://www.npmjs.com/package/capacitor-auth-manager
|
|
29
|
+
developer linkedin profile: https://linkedin.com/in/aoneahsan
|
|
30
|
+
email: aoneahsan@gmail.com
|
|
31
|
+
phone: +923046619706
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":""}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":""}
|
|
File without changes
|
package/dist/esm/web.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
package/dist/plugin.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
|
package/package.json
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "capacitor-auth-manager",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Auth Manager Plugin for Capacitor, provides all the auth options that their provider provides, and provides a subscribable auth state. including google, apple, microsoft, facebook, github, slack, linkedin, email magic link, sms, email/phone/username + password, email code, biometric auth",
|
|
5
|
+
"main": "dist/plugin.cjs.js",
|
|
6
|
+
"module": "dist/esm/index.js",
|
|
7
|
+
"types": "dist/esm/index.d.ts",
|
|
8
|
+
"unpkg": "dist/plugin.js",
|
|
9
|
+
"files": [
|
|
10
|
+
"android/src/main/",
|
|
11
|
+
"android/build.gradle",
|
|
12
|
+
"android/gradle.properties",
|
|
13
|
+
"android/settings.gradle",
|
|
14
|
+
"android/proguard-rules.pro",
|
|
15
|
+
"dist/",
|
|
16
|
+
"ios/Plugin/",
|
|
17
|
+
"CapacitorAuthManager.podspec"
|
|
18
|
+
],
|
|
19
|
+
"author": {
|
|
20
|
+
"email": "aoneahsan@gmail.com",
|
|
21
|
+
"name": "Ahsan Mahmood (Aoneahsan)",
|
|
22
|
+
"url": "https://aoneahsan.com"
|
|
23
|
+
},
|
|
24
|
+
"license": "MIT",
|
|
25
|
+
"repository": {
|
|
26
|
+
"type": "git",
|
|
27
|
+
"url": "git+https://github.com/aoneahsan/capacitor-auth-manager.git"
|
|
28
|
+
},
|
|
29
|
+
"bugs": {
|
|
30
|
+
"url": "https://github.com/aoneahsan/capacitor-auth-manager/issues"
|
|
31
|
+
},
|
|
32
|
+
"keywords": [
|
|
33
|
+
"capacitor",
|
|
34
|
+
"plugin",
|
|
35
|
+
"native",
|
|
36
|
+
"auth",
|
|
37
|
+
"google",
|
|
38
|
+
"apple",
|
|
39
|
+
"microsoft",
|
|
40
|
+
"facebook",
|
|
41
|
+
"github",
|
|
42
|
+
"slack",
|
|
43
|
+
"linkedin",
|
|
44
|
+
"email-magic-link",
|
|
45
|
+
"sms",
|
|
46
|
+
"email-code",
|
|
47
|
+
"biometric"
|
|
48
|
+
],
|
|
49
|
+
"scripts": {
|
|
50
|
+
"build": "npm run clean && npm run tsc && rollup -c rollup.config.js",
|
|
51
|
+
"clean": "rimraf ./dist",
|
|
52
|
+
"tsc": "tsc",
|
|
53
|
+
"watch": "tsc --watch",
|
|
54
|
+
"lint": "eslint . --ext ts",
|
|
55
|
+
"prettier": "prettier --write .",
|
|
56
|
+
"prepublishOnly": "npm run build",
|
|
57
|
+
"swiftlint": "cd ios && swiftlint lint --fix --format --path Plugin --verbose"
|
|
58
|
+
},
|
|
59
|
+
"devDependencies": {
|
|
60
|
+
"@capacitor/android": "^7.4.1",
|
|
61
|
+
"@capacitor/cli": "^7.4.1",
|
|
62
|
+
"@capacitor/core": "^7.4.1",
|
|
63
|
+
"@capacitor/ios": "^7.4.1",
|
|
64
|
+
"@rollup/plugin-json": "^6.1.0",
|
|
65
|
+
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
66
|
+
"@types/node": "^24.0.12",
|
|
67
|
+
"@typescript-eslint/eslint-plugin": "^8.36.0",
|
|
68
|
+
"@typescript-eslint/parser": "^8.36.0",
|
|
69
|
+
"eslint": "^9.30.1",
|
|
70
|
+
"prettier": "^3.6.2",
|
|
71
|
+
"rimraf": "^6.0.1",
|
|
72
|
+
"rollup": "^4.44.2",
|
|
73
|
+
"typescript": "^5.8.3"
|
|
74
|
+
},
|
|
75
|
+
"peerDependencies": {
|
|
76
|
+
"@capacitor/core": "^7.0.0"
|
|
77
|
+
},
|
|
78
|
+
"capacitor": {
|
|
79
|
+
"ios": {
|
|
80
|
+
"src": "ios"
|
|
81
|
+
},
|
|
82
|
+
"android": {
|
|
83
|
+
"src": "android"
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|