Problem with Google Sign-in in Android Project - APK - Prod Version Problem

I am using google login in an android project. The login process, which works smoothly on devices installed through Android studio, does not work when published on the play store. The app's release and debug sha1 values have been added to firebase and gcp Credentials. In other words, sha1 values created according to debug and release states are available on both platforms. On devices installed as debug, the application can be logged in without any problems, but when it is published on APK or play store, it cannot be logged in. How can I solve this problem?