-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: π€ update react-native-jose and react-native (#54)
* chore: π€ upgraded RN in order to use the upcoming new features in react-native-jose * refactor: π‘ use update version of react-native-jose sign func * chore: π€ disable native tests since we don't run them and it breaks the app build having them enabled * fix: travis deliver stage should run on push to master * docs: update debugging docs with cache clear instructions * chore: update package.json use [email protected] * test: π mock for react-native-jose 0.5.0 Co-authored-by: Andreas Lundqvist <[email protected]>
- Loading branch information
1 parent
9e24baa
commit d1ae17f
Showing
11 changed files
with
1,120 additions
and
836 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
import * as jwt from 'jwt-lite' | ||
|
||
const Jose = { | ||
sign: (payload, keys, header) => jwt.sign(payload, keys.jwk, header), | ||
verify: (token, jwk) => jwt.verify(token, jwk), | ||
decode: (token, options) => jwt.decode(token, options), | ||
} | ||
|
||
export default Jose | ||
export const sign = (payload, keys, header) => | ||
jwt.sign(payload, keys.jwk, header) | ||
export const verify = (token, jwk) => jwt.verify(token, jwk) | ||
export const decode = (token, options) => jwt.decode(token, options) |
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
Oops, something went wrong.