-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: made the second paramenter of functions a Map without defau…
…lt value and refactored the key generation
- Loading branch information
Zoe Maas
committed
Jul 23, 2024
1 parent
d5c34e9
commit 440300c
Showing
4 changed files
with
15 additions
and
17 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
...openid-federation-common/src/commonMain/kotlin/com/sphereon/oid/fed/common/jwt/JoseJwt.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.sphereon.oid.fed.common.jwt | ||
|
||
expect fun sign(payload: String, opts: MutableMap<String, Any>?): String | ||
expect fun verify(jwt: String, key: Any, opts: MutableMap<String, Any>? = mutableMapOf()): Boolean | ||
expect fun sign(payload: String, opts: Map<String, Any>): String | ||
expect fun verify(jwt: String, key: Any, opts: Map<String, Any>): Boolean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters