Rather than doing the credentials decoding explicitly, you can use the methods from scilifelab/google and scilifelab/google/GoogleConnection