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

DEV-1444 Read linkType from query params and pass to core #114

Merged
merged 3 commits into from
Jul 26, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions package/src/models/config/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,12 @@ export const readQueryParams = assign((context: AuthContext<View>) => {
}
const uuid = getQueryAttr("uuid");
const token = getQueryAttr("token");
const linkType = getQueryAttr("type");
return {
query: {
uuid,
token,
linkType,
isValid: true,
},
};
Expand Down
1 change: 1 addition & 0 deletions package/src/models/forms/universal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -696,6 +696,7 @@ const universalMachineConfig: AuthMachineConfig = {
method: "link",
token: context.query.token,
uuid: context.query.uuid,
linkType: context.query.linkType,
redirect: context.config?.redirect,
},
],
Expand Down
1 change: 1 addition & 0 deletions package/src/models/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ export type View =
export type Query = {
token?: string;
uuid?: string;
linkType?: string;
isValid?: boolean;
};

Expand Down
Loading