Skip to content

Commit

Permalink
small change
Browse files Browse the repository at this point in the history
Signed-off-by: shn27 <[email protected]>
  • Loading branch information
shn27 committed Jun 11, 2024
1 parent eabfcac commit 87a26a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apis/identity/v1alpha1/inboxtokenrequest_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ type InboxTokenRequest struct {
type InboxTokenRequestRequest struct{}

type InboxTokenRequestResponse struct {
JmapJWTToken string `json:"jmapJWTToken"`
AdminJWTToken string `json:"adminJWTToken"`
}

func init() {
Expand Down
2 changes: 1 addition & 1 deletion pkg/registry/identity/inboxtokenrequest/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func (r *Storage) Destroy() {}
func (r *Storage) Create(ctx context.Context, obj runtime.Object, _ rest.ValidateObjectFunc, _ *metav1.CreateOptions) (runtime.Object, error) {
req := obj.(*identityapi.InboxTokenRequest)
req.Response = &identityapi.InboxTokenRequestResponse{
JmapJWTToken: r.bc.GetToken(),
AdminJWTToken: r.bc.GetToken(),
}
return req, nil
}

0 comments on commit 87a26a9

Please sign in to comment.