Created
March 9, 2022 17:57
-
-
Save nidhi-canopas/cfefede2fcc090ec2458c73e127b7b8e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
func getDecodedFireBaseKey() ([]byte, error) { | |
fireBaseAuthKey := os.Getenv("FIREBASE_AUTH_KEY") | |
decodedKey, err := base64.StdEncoding.DecodeString(fireBaseAuthKey) | |
if err != nil { | |
return nil, err | |
} | |
return decodedKey, nil | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment