Skip to content

Instantly share code, notes, and snippets.

@nidhi-canopas
Created March 9, 2022 17:57
Show Gist options
  • Save nidhi-canopas/cfefede2fcc090ec2458c73e127b7b8e to your computer and use it in GitHub Desktop.
Save nidhi-canopas/cfefede2fcc090ec2458c73e127b7b8e to your computer and use it in GitHub Desktop.
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