Flutter Discourse Gmail Login

I want to make my own community using discourse api. I am using flutter framework. I tried a lot of ways to login through gmail sso using the discouse API endpoints. Can someone tell me how can i do it?