Skip to content

Commit

Permalink
Set right validity for s2s VPs
Browse files Browse the repository at this point in the history
  • Loading branch information
reinkrul committed Nov 27, 2023
1 parent d5a66e2 commit 3a5dcd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auth/services/oauth/relying_party.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ func (s *relyingParty) RequestRFC021AccessToken(ctx context.Context, requester d
if signInstructions.Empty() {
return nil, core.Error(http.StatusPreconditionFailed, "no matching credentials")
}
expires := time.Now().Add(time.Minute * 15) //todo
expires := time.Now().Add(time.Second * 5)
// todo: support multiple wallets
vp, err := s.wallet.BuildPresentation(ctx, signInstructions[0].VerifiableCredentials, holder.PresentationOptions{
Format: format,
Expand Down

0 comments on commit 3a5dcd5

Please sign in to comment.