Compare commits
1 Commits
fix/openap
...
fix/kan-16
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
32caa1d003 |
@@ -328,13 +328,13 @@ export const initAuth = (db: dbClient) => {
|
|||||||
ctx.path === "/magic-link/verify" &&
|
ctx.path === "/magic-link/verify" &&
|
||||||
(ctx.query?.callbackURL as string | undefined)?.includes(
|
(ctx.query?.callbackURL as string | undefined)?.includes(
|
||||||
"type=invite",
|
"type=invite",
|
||||||
) &&
|
)
|
||||||
ctx.query?.memberPublicId
|
|
||||||
) {
|
) {
|
||||||
const userId = ctx.context.newSession?.session.userId;
|
const userId = ctx.context.newSession?.session.userId;
|
||||||
const memberPublicId = ctx.query.memberPublicId as string;
|
const callbackURL = ctx.query?.callbackURL as string | undefined;
|
||||||
|
const memberPublicId = callbackURL?.split("memberPublicId=")[1];
|
||||||
|
|
||||||
if (userId) {
|
if (userId && memberPublicId) {
|
||||||
const member = await memberRepo.getByPublicId(db, memberPublicId);
|
const member = await memberRepo.getByPublicId(db, memberPublicId);
|
||||||
|
|
||||||
if (member?.id) {
|
if (member?.id) {
|
||||||
|
|||||||
Reference in New Issue
Block a user