Skip to content

Conversation

paanSinghCoder
Copy link
Contributor

Add revoke user active session admin API.

Copy link

vercel bot commented Sep 11, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
frontier Ready Ready Preview Comment Sep 11, 2025 9:02am


sessionID, err := uuid.Parse(request.Msg.GetSessionId())
if err != nil {
return nil, status.Error(codes.InvalidArgument, "invalid session_id")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return nil, status.Error(codes.InvalidArgument, "invalid session_id")
return nil, status.Error(connect.CodeInvalidArgument, "invalid session_id")

}

if err := h.sessionService.SoftDelete(ctx, sessionID, time.Now()); err != nil {
return nil, status.Error(codes.Internal, err.Error())
Copy link
Contributor

@AmanGIT07 AmanGIT07 Sep 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return nil, status.Error(codes.Internal, err.Error())
return nil, status.Error(connect.CodeInternal, err.Error())

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.

2 participants