v0.14.1
🎉 New Features
- Wasp now supports
onBeforeLogin
andonAfterLogin
auth hooks! You can use these hooks to run custom logic before and after a user logs in. For example, you can use theonBeforeLogin
hook to check if the user is allowed to log in. - OAuth refresh tokens are here. If the OAuth provider supports refresh tokens, you'll be able to use them to refresh the access token when it expires. This is useful for using OAuth provider APIs in the background e.g. accessing user's calendar events.
⚠️ Breaking Changes
- To make the API consistent across different auth hooks, we change how the
onBeforeOAuthRedirect
hook receives theuniqueRequestId
value tooauth.uniqueRequestId
.
🐞 Bug fixes
- Prisma file parser now allows using empty arrays as default values.
🔧 Small improvements
- Replace
oslo/password
with directly using@node-rs/argon2
- We now use
websocket
transport for the WebSocket client to avoid issues when deploying the server behind a load balancer.
Community contributions by @rubyisrust @santolucito @sezercik @LLxD!