insomnia/packages/insomnia-app/app/network/o-auth-1/constants.js

12 lines
427 B
JavaScript
Raw Normal View History

2017-11-06 20:44:55 +00:00
// @flow
2018-06-25 17:42:50 +00:00
export type OAuth1SignatureMethod =
| 'HMAC-SHA1'
| 'RSA-SHA1'
| 'HMAC-SHA256'
| 'PLAINTEXT';
2017-11-06 20:44:55 +00:00
export const SIGNATURE_METHOD_HMAC_SHA1: OAuth1SignatureMethod = 'HMAC-SHA1';
2018-06-25 17:42:50 +00:00
export const SIGNATURE_METHOD_HMAC_SHA256: OAuth1SignatureMethod =
'HMAC-SHA256';
export const SIGNATURE_METHOD_RSA_SHA1: OAuth1SignatureMethod = 'RSA-SHA1';
2017-11-06 20:44:55 +00:00
export const SIGNATURE_METHOD_PLAINTEXT: OAuth1SignatureMethod = 'PLAINTEXT';