Skip to content
Snippets Groups Projects
Commit 0af6c129 authored by Jano Hendriks's avatar Jano Hendriks
Browse files

Added Bob API auth encryption key

parent 54a1db3a
No related branches found
No related tags found
No related merge requests found
......@@ -14,6 +14,7 @@ type EncryptionKeysSecret struct {
type EncryptionKeys struct {
FirebaseEncryptionKey string `json:"firebase_encryption_key"`
JWTEncryptionKey string `json:"jwt_encryption_key"`
BobAPIAuthEncryptionKey string `json:"bob_api_auth_encryption_key"`
}
func GetEncryptionKeys(secretID string, isDebug bool) (EncryptionKeys, error) {
......@@ -42,3 +43,8 @@ func GetFirebaseCredentialsEncryptionKey(secretID string, isDebug bool) (string,
encryptionKeys, err := GetEncryptionKeys(secretID, isDebug)
return encryptionKeys.FirebaseEncryptionKey, err
}
func GetBobAPIAuthEncryptionKey(secretID string, isDebug bool) (string, error) {
encryptionKeys, err := GetEncryptionKeys(secretID, isDebug)
return encryptionKeys.BobAPIAuthEncryptionKey, err
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment