Fly secrets are set but not picking up

I’m using assent library to configure google oauth login. Everything works properly on localhost. But can’t seem to login in production.

I’ve this config:
@config [
client_id: System.get_env(“GOOGLE_CLIENT_ID”),
client_secret: System.get_env(“GOOGLE_CLIENT_SECRET”),
redirect_uri: System.get_env(“GOOGLE_REDIRECT_URI”)

Fly secrets are set properly. I’ve seen them in “env” via “fly ssh console” too.

I’ve made sure the javascript origins and redirect uris are set properly in cloud console.
But when I try to login, it is showing two errors randomly that either client_id is missing or redirect uri is missing.

When I test this locally everything looks good though. Isssue is happening only in production. Going crazy on this for 2 days now. What might be the issue here ?

Fixed now:
I had to add the config in runtime.exs rather than setting these directly in the code.