authhero 0.144.0 → 0.147.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.
- package/README.md +6 -5
- package/dist/authhero.cjs +34 -34
- package/dist/authhero.mjs +2803 -2729
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -63,6 +63,7 @@ hooks: {
|
|
|
63
63
|
- `onExecuteCredentialsExchange`
|
|
64
64
|
- `onExecutePreUserRegistration`
|
|
65
65
|
- `onExecutePostUserRegistration`
|
|
66
|
+
- `onExecutePostUserLogin`
|
|
66
67
|
|
|
67
68
|
## Email Providers
|
|
68
69
|
|
|
@@ -90,10 +91,10 @@ There are two ways to use the Tailwind CSS styles with authhero components:
|
|
|
90
91
|
|
|
91
92
|
```js
|
|
92
93
|
// Import the CSS
|
|
93
|
-
import
|
|
94
|
+
import "authhero/styles";
|
|
94
95
|
|
|
95
96
|
// Then use the components
|
|
96
|
-
import { Button, Form } from
|
|
97
|
+
import { Button, Form } from "authhero";
|
|
97
98
|
```
|
|
98
99
|
|
|
99
100
|
### 2. Inject CSS programmatically (for Cloudflare Workers and similar environments)
|
|
@@ -102,19 +103,19 @@ For environments that don't support filesystem access, you can inject the CSS pr
|
|
|
102
103
|
|
|
103
104
|
```js
|
|
104
105
|
// Import the helper function
|
|
105
|
-
import { injectTailwindCSS } from
|
|
106
|
+
import { injectTailwindCSS } from "authhero";
|
|
106
107
|
|
|
107
108
|
// Call this function once to inject the CSS into the document
|
|
108
109
|
injectTailwindCSS();
|
|
109
110
|
|
|
110
111
|
// Then use the components
|
|
111
|
-
import { Button, Form } from
|
|
112
|
+
import { Button, Form } from "authhero";
|
|
112
113
|
```
|
|
113
114
|
|
|
114
115
|
You can also access the raw CSS string:
|
|
115
116
|
|
|
116
117
|
```js
|
|
117
|
-
import { tailwindCss } from
|
|
118
|
+
import { tailwindCss } from "authhero";
|
|
118
119
|
|
|
119
120
|
// Use the CSS string as needed
|
|
120
121
|
// For example, in a Cloudflare Worker:
|