@civic/auth 0.5.4-beta.1 → 0.5.4
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/CHANGELOG.md
CHANGED
|
@@ -1,76 +1,103 @@
|
|
|
1
|
+
# 0.5.4 Sign In Promise Fix
|
|
2
|
+
|
|
3
|
+
- Fix Sign In Promise Fix
|
|
4
|
+
|
|
5
|
+
# 0.5.3 UserButton component styling
|
|
6
|
+
|
|
7
|
+
- fix the UserButton styling to make it look better with darkmode and more consistent with the other buttons.
|
|
8
|
+
|
|
1
9
|
# 0.5.2 Fix NextJS multiple router refresh bug
|
|
10
|
+
|
|
2
11
|
- fix a bug that was causing the NextJS router to refresh multiple times post-login
|
|
3
12
|
|
|
4
13
|
# 0.5.1 Fix issue with typescript config
|
|
14
|
+
|
|
5
15
|
- allow cookies to be partially defined in the config
|
|
6
16
|
|
|
7
17
|
# 0.5.0 NextJS fetch user fixes & basePath config support
|
|
18
|
+
|
|
8
19
|
- when the NextJS provider loads if the user is already authenticated the user should be available immediately
|
|
9
20
|
- block UI display correctly in iframe when the SDK loads in app during NextJS flow
|
|
10
21
|
- use useIsClient from usehooks-ts
|
|
11
|
-
- add support for a basePath config
|
|
22
|
+
- add support for a basePath config where it was not being correctly applied to the logout callback URL
|
|
12
23
|
|
|
13
24
|
# 0.4.7 Standalone react fixes
|
|
25
|
+
|
|
14
26
|
- Fix case where standalone react app isn't recognising existing session
|
|
15
27
|
- Fix react standalone case where it's initiating startSignIn twice leading to duplicate calls to the auth-server
|
|
16
28
|
- Add refresh timeout in useSignIn for initial signIn call so that the code-verifier doesn't get stale if the user leaves the tab open on a page and doesn't sign in right away
|
|
17
29
|
|
|
18
30
|
# 0.4.6 Refresh fixes
|
|
31
|
+
|
|
19
32
|
- if a valid refresh token exists, automatically try to re-hydrate the user's session by doing an oauth refresh
|
|
20
33
|
|
|
21
34
|
# 0.4.5 Block display fix
|
|
35
|
+
|
|
22
36
|
- if the iframe has already been used on a page and it's re-opened we shouldn't show the previous app content
|
|
23
37
|
|
|
24
38
|
# 0.4.4 Custom civic iframe resizer (fix)
|
|
39
|
+
|
|
25
40
|
- use a custom civic-iframe-resizer to avoid the problems and warnings with the commercial resizer
|
|
26
41
|
- fix positioning of iframe overlay
|
|
27
42
|
|
|
28
43
|
# 0.4.3 Custom civic iframe resizer
|
|
44
|
+
|
|
29
45
|
- use a custom civic-iframe-resizer to avoid the problems and warnings with the commercial resizer
|
|
30
46
|
|
|
31
47
|
# 0.4.2 Download iframe-resizer & fix infinite redirect loop in NextJS
|
|
48
|
+
|
|
32
49
|
- download iframe-resizer lib as it was failing to resize on load
|
|
33
50
|
- don't use dynamic API in NextJS middleware as it's not supported
|
|
34
51
|
|
|
35
52
|
# 0.4.1 NextJS server function token validation
|
|
53
|
+
|
|
36
54
|
- add existing validation to NextJS server functions, getUser and getTokens. Also exposes a new NextJS server function 'isLoggedIn'
|
|
37
|
-
|
|
55
|
+
|
|
38
56
|
# 0.4.0 server-side token validation
|
|
57
|
+
|
|
39
58
|
- add server-side token validation to any calls to check whether the user is authenticated
|
|
40
59
|
- implement and expose a server/CivicAuth class that exposes methods without needing to add config and storage to every call
|
|
41
60
|
|
|
42
61
|
# 0.3.8 Fix NextJS cookie expiration behaviour
|
|
62
|
+
|
|
43
63
|
- fix the civic-auth SDK NextJS cookie expiration behaviour for embedded iframes: when the iframe mounts, it will trigger the auto sign-in process to start again
|
|
44
64
|
- change NextJS console.logs to logger.debug statements
|
|
45
65
|
|
|
46
66
|
# 0.3.7 Fix user auth refresh
|
|
67
|
+
|
|
47
68
|
- Fix issue where a 500 occurred during token refresh
|
|
48
|
-
- UI fixes
|
|
69
|
+
- UI fixes
|
|
49
70
|
|
|
50
71
|
# 0.3.6 Remove CJS build
|
|
72
|
+
|
|
51
73
|
- Remove CommonJS build from @civic/auth
|
|
52
74
|
|
|
53
75
|
# 0.3.5 NextJS middleware redirect fix + Iframe padding + use-client fixes
|
|
76
|
+
|
|
54
77
|
- remove padding and background colours on iframe wrapper: the login-app must handle its own padding and background colour to support light/dark mode
|
|
55
78
|
- fix issue where 'use client' was required to use the CivicProvider in react apps
|
|
56
79
|
- fix NextJS middleware so that visiting a page with an expired idToken doesn't trigger a redirect loop
|
|
57
80
|
- accept design options messages from the login-app via postMessage in order to set the color-mode for the iframe chrome
|
|
58
81
|
|
|
59
82
|
# 0.3.4 Refresh bugfix, Update User type
|
|
83
|
+
|
|
60
84
|
- Update User type to correctly support type extensions
|
|
61
85
|
- User Button: Show a loading state if the user initiates an action and is authenticating or signing out
|
|
62
86
|
- Prevent multiple in-flight refresh requests
|
|
63
87
|
|
|
64
88
|
# 0.3.3 fix user cookie refresh
|
|
65
|
-
|
|
89
|
+
|
|
90
|
+
- Ensured that the critical path "/api/auth/\*\*" is always included in the exclude list, enhancing security by preventing accidental exposure of authentication endpoints
|
|
66
91
|
- Allowed the include list to be completely replaced by user-provided configurations, maintaining flexibility without compromising security.
|
|
67
92
|
|
|
68
93
|
# 0.3.1 iframe-modal mode start authentication in background
|
|
94
|
+
|
|
69
95
|
- for displayMode = 'iframe', start authentication in the background on page load for fast perceived login-app loading
|
|
70
96
|
- upgrade iframe resizer to 5.3.3
|
|
71
97
|
- fix bug in NextJSCookies storage where the call to cookies() wasn't awaited
|
|
72
98
|
|
|
73
99
|
# 0.3.0 iframe resizer support
|
|
100
|
+
|
|
74
101
|
- add support for auto-resizing the login-app iframe using the react iframe resizer library
|
|
75
102
|
- rename NextKS cookie EXPIRES_IN -> ACCESS_TOKEN_EXPIRES_AT
|
|
76
103
|
- user session fixes
|
|
@@ -79,52 +106,65 @@
|
|
|
79
106
|
- fix compilation to only include src directory
|
|
80
107
|
|
|
81
108
|
# 0.2.5 fix idToken retrieval from cookie storage
|
|
109
|
+
|
|
82
110
|
- fix a bug where the client was trying to retrieve the idToken using the server-only cookies() method
|
|
83
111
|
- fix an issue with the build including the src and test files in the package
|
|
84
112
|
|
|
85
113
|
# 0.2.4 fix multiple auth-signIn calls
|
|
114
|
+
|
|
86
115
|
- fix a bug where signIn is called multiple times in embedded iframe mode
|
|
87
116
|
|
|
88
117
|
# 0.2.3 remove unnecessary logging
|
|
118
|
+
|
|
89
119
|
- remove unnecessary logging
|
|
90
120
|
|
|
91
121
|
# 0.2.2 authStatus and UserButton updates
|
|
122
|
+
|
|
92
123
|
- expose authStatus value from useUser
|
|
93
124
|
- show loading icon in UserButton, SignInButton and SignOutButton during sign in and sign out
|
|
94
125
|
|
|
95
126
|
# 0.2.1 Server getTokens
|
|
127
|
+
|
|
96
128
|
- expose server/getTokens function
|
|
97
129
|
- remove unused SDK exports
|
|
98
130
|
- Add support for showing error messages in the IDP
|
|
99
|
-
|
|
131
|
+
|
|
100
132
|
# 0.2.0 Refresh and Logout improvements
|
|
133
|
+
|
|
101
134
|
- improve the token auto-refresh funcionality
|
|
102
135
|
- improve logout functionality and added redirect on logout
|
|
103
136
|
|
|
104
137
|
# 0.1.6 Fix printVersion usage
|
|
138
|
+
|
|
105
139
|
- Only print the SDK version once
|
|
106
140
|
- fix useUserCookie re-rendering too often
|
|
107
141
|
- add auto-refresh to nextjs and standalone providers
|
|
108
142
|
|
|
109
143
|
# 0.1.5 Logout updates and faster user cookie retrieval
|
|
144
|
+
|
|
110
145
|
- Implement client & auth-server logout functionality to invalidate tokens on logout
|
|
111
146
|
- fetch the user on component mount for faster useUserCookie user retrieval
|
|
112
147
|
|
|
113
|
-
# 0.1.4 Refactor hooks and providers
|
|
148
|
+
# 0.1.4 Refactor hooks and providers
|
|
149
|
+
|
|
114
150
|
- Refactor the internal hooks and providers implementation
|
|
115
151
|
- change modalIframe prop to new iframeMode that can be either 'embedded' or 'modal' (default)
|
|
116
152
|
- output the current lib version to the command line
|
|
117
153
|
|
|
118
154
|
# 0.1.3 Update README
|
|
155
|
+
|
|
119
156
|
- Synchronise the README with docs.civic.com
|
|
120
157
|
|
|
121
158
|
# 0.1.2 Fix AuthConfig defaults
|
|
159
|
+
|
|
122
160
|
- Update AuthConfig type to make oauthServer optional
|
|
123
161
|
- Export AuthConfig type from server
|
|
124
162
|
- Make next an optional rather than a peer dependency
|
|
125
163
|
|
|
126
164
|
# 0.1.1 Fix Firefox loading overlay issues
|
|
165
|
+
|
|
127
166
|
- Iframe loading overlay was obscuring loaded login app in Firefox
|
|
128
167
|
|
|
129
168
|
# 0.1.0 Initial release
|
|
169
|
+
|
|
130
170
|
- Authentication using PKCE for standalone ReactJS and NextJS apps
|
package/dist/shared/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "@civic/auth:0.5.4
|
|
1
|
+
export declare const VERSION = "@civic/auth:0.5.4";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/shared/version.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/shared/version.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,sBAAsB,CAAC"}
|
package/dist/shared/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/shared/version.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAE/C,MAAM,CAAC,MAAM,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/shared/version.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAE/C,MAAM,CAAC,MAAM,OAAO,GAAG,mBAAmB,CAAC","sourcesContent":["// This is an auto-generated file. Do not edit.\n\nexport const VERSION = \"@civic/auth:0.5.4\";\n"]}
|