mcp: add code type

This commit is contained in:
Denis Mishin 2025-04-25 14:09:21 -04:00
parent 9e4947c62f
commit 0135b8b9aa
6 changed files with 241 additions and 49 deletions

View file

@ -81,6 +81,7 @@ func (srv *Handler) AuthorizationResponse(
req *oauth21proto.AuthorizationRequest,
) {
code, err := CreateCode(
CodeTypeAuthorization,
id,
time.Now().Add(time.Minute*10),
req.ClientId,