flashauthbyjagwar 1.1.0 → 1.2.0

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.
Files changed (2) hide show
  1. package/README.md +69 -6
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,6 +1,69 @@
1
- ---------------------------------------------------------------- FLASH AUTH SDK ------------------------------------------------------------------
2
- INTRODUCTION:
3
-
4
-
5
-
6
-
1
+ ```text
2
+ +----------------------+ +-----------------------------------+
3
+ | User Triggers Auth | | FlashAuth SDK Captures |
4
+ | in React App |---->| Credentials |
5
+ | (Login Button) | | (Email/Password or OAuth Token) |
6
+ +----------------------+ +-------------------+---------------+
7
+ |
8
+ |
9
+ |
10
+ v
11
+ +-----------------------------------------------------------------------------------------------+
12
+ | SDK Sends Encrypted Request to FlashAuth Backend with FlashAuth Client Public Key |
13
+ +-----------------------------------------------------------------------------------------------+
14
+ |
15
+ |
16
+ |
17
+ |
18
+ +------------------------------------------------------------------------+
19
+ | Backend Finds and Connect to Client' Database by Client Pubilc Key |
20
+ +------------------------------------------------------------------------+
21
+ |
22
+ |
23
+ |
24
+ +----------------------+ +----------------------------------+
25
+ | If Failed ? |<-------------| If Successfully connected ? |
26
+ +----------------------+ +--------+-------------------------+
27
+ | |
28
+ | |
29
+ | v
30
+ | +----------------------------------------------------------------------+
31
+ | | Backend Attempt for Creating / Updating user in client's database |
32
+ | | (Custom Logic + Security Checks) |
33
+ | +----------------------------------------------------------------------+
34
+ | |
35
+ | v
36
+ +----------------------+ +-----------------------------------------+
37
+ | If Failed ? |<-----------| If Successfuly Created / Updated ? |
38
+ +----------------------+ +---------------+-------------------------+
39
+ | |
40
+ + +---------------+
41
+ | |
42
+ | |
43
+ | |
44
+ v v
45
+ +---------------------------------+ +---------------------------------+
46
+ | Error: Reject Auth | | Create/Update User in client's |
47
+ | (Invalid Credentials) | | Database |
48
+ +-----------------+---------------+ +-----------------+---------------+
49
+ | |
50
+ | +-----------------------+
51
+ | |
52
+ | |
53
+ | |
54
+ | v
55
+ | +-----------------------------------------------------+
56
+ | | Backend Sends Callback to App |
57
+ | | (Update Auth State) |
58
+ | +-----------------------------------------------------+
59
+ | |
60
+ | v
61
+ | +------------------+
62
+ +------->| User Logged In!|<-------+
63
+ | (Redirect/Unlock | |
64
+ | Features) | |
65
+ +------------------+ |
66
+ | |
67
+ +------------------+
68
+ Optional: Retry Flow
69
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flashauthbyjagwar",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "An authentication SDK for your React site. No need to write auth logic — just create an account at flashauth.connectjagwar.com to get started.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",