-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed ability to install from Github + Fixed typo #172
Conversation
File ./playground/.nuxt/tsconfig.json does not exists. Typo fix: inviteAccept renamed to acceptInvite.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Hi again, Another commit adds 2 config vars: sameSiteRefreshToken and isSecureRefreshToken, 013437d This is to fix having Same-Site = "none" with secure=false, which shows a warning in console logs.
Cheers! |
…reated' hook. As the 'app:created' hook is not called on SSR=true (static generation).
- cookieMaxAge (from maxAgeRefreshToken) - cookieSameSite (from sameSiteRefreshToken) - cookieSecure (from isSecureRefreshToken)
More commits:
|
@amerkay Thanks for this, great work. I will review it in the next days, are there any breaking changes? |
@amerkay |
Just a rename, as it's not really just the for the RefreshToken, it's for all 3 cookies. See modifications in useDirectusToken composable. Note this is before the rename. |
@amerkay I have re-introduced the support for maxAgeRefreshToken to keep backward compatibility, we will remove it in future versions. Can you proceed and double-test it so that we are sure with both settings used, the behavior is the same? |
This way I can create a custom login function. > TODO: Add code and tutorial for passwordless login using Directus 10.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on my own project. All cookies are set to the correct date with the correct secure
and SameSite
params.
Fixed minor conflict. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, good work
I was trying to get acceptInvite, and inviteUsers functions to work, so:
pnpm add github:Intevel/nuxt-directus
. This is when I got the error that tsconfig.jsonextends
does not exist. Fixed by having the minimal required config instead.Types of changes
Description
Checklist: