Emails are taking user out of app and requiring a re-login

I have an email button for my students to send messages. Problem I am having is that it is taking them out of the Glide app into Gmail but once the message is sent, it is not returning to Glide. A re-login is required. On the other hand, if I am in Glide on Brave browser, it launches the Gmail in Chrome, thus the user can remains in Glide-- but if they are in Glide in Chrome, then they are kicked out when sending the email.