Skip to content

Commit

Permalink
feat: Add supported DID methods
Browse files Browse the repository at this point in the history
  • Loading branch information
nklomp committed Feb 25, 2022
1 parent 3c6f67b commit df74ccd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class DidAuthSiopOpAuthenticator implements IAgentPlugin {
return Promise.reject(new Error(`Session with id: ${args.sessionId} already present`))
}

const session = new OpSession({ sessionId, identifier: args.identifier, expiresIn: args.expiresIn, context })
const session = new OpSession({ sessionId, identifier: args.identifier, expiresIn: args.expiresIn, supportedDidMethods: args.supportedDidMethods, context })
await session.init()
this.sessions[sessionId] = session

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export interface IGetSiopSessionArgs {

export interface IRegisterSiopSessionArgs {
identifier: IIdentifier
supportedDidMethods?: string[]
sessionId?: string
expiresIn?: number
}
Expand Down

0 comments on commit df74ccd

Please sign in to comment.