Skip to content
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

Fix createInitial* and send*MagicAuthLink to throw if the expected type from sessionStrategy.start is not a string #9018

Merged
merged 10 commits into from
Feb 12, 2024

Conversation

dcousens
Copy link
Member

@dcousens dcousens commented Feb 12, 2024

This pull requests updates some comments, refines some types and removes some casts in favour of errors in packages/auth/src/gql/getInitFirstItemSchema.ts and packages/auth/src/gql/getMagicAuthLinkSchema.ts.

The mutations were previously casting as string, and this isn't guaranteed by the type of SessionStrategy.
Some other changes are bundled including some minor updates to our release script and GitHub CI naming.

Lastly, this pull request adds some additional defaults in initConfig, which will be removed soon but can help debugging by reducing the number of cases where configuration variables are undefined.

Copy link

codesandbox-ci bot commented Feb 12, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 0776cfe:

Sandbox Source
@keystone-6/sandbox Configuration

@dcousens dcousens merged commit 17ba589 into main Feb 12, 2024
58 checks passed
@dcousens dcousens deleted the maintenance branch February 12, 2024 06:29
@dcousens dcousens mentioned this pull request Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant