You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: migration.md
+15-1Lines changed: 15 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -103,4 +103,18 @@
103
103
17. Remove empty searches.
104
104
Get queries no longer require a `search` key to access other query keys
105
105
18. All mdoel members must be initialized to undefined, including relational arrays
106
-
19. Queries may no longer pass special keys with `__` or `___`. You should now put these queries in the `additionalParameters` query object
106
+
19. Queries may no longer pass special keys with `__` or `___`. You should now put these queries in the `additionalParameters` query object
107
+
108
+
## Version 1.x.x -> 2.x.x
109
+
110
+
1. Auth tokens are now completely stateless. Remove the `token` field from your User entity.
111
+
2. Login now issues a refresh token.
112
+
1. Make a POST endpoint in your auth router:
113
+
`router.post('/refresh', refreshTokenEndpoint);`
114
+
2. Update your front-end auth service to save the `refreshToken` and `refreshExpiration` from the `loginEndpoint`
115
+
3. Set a timeout to call the `refreshTokenEndpoint` route when the access token expires. `refreshTokenEndpoint` will return an updated user object, including a new access token & expiration time.
116
+
3.**(Optional)** PointyAPI now supports `UUID`. Follow the steps in the Readme to enable UUID (strongly recommended for production).
117
+
118
+
**NOTE** If you are already in production and decide to migrate to UUID, you must make sure to update relations etc
119
+
120
+
4.**(Optional)** Guards will now issue a `401` only if a token is not present/valid, otherwise will issue a `403`. This may help determine if the user is authenticated/authorized on the front-end.
0 commit comments