Point authRoute directly to google auth

天大地大妈咪最大 提交于 2019-12-12 16:24:48

问题


Since I'm only using google auth anyways, I would like to get rid of the login screen seeing as it's quite superfluous to have a page with just a google button on.

What would be the way (if possible) to set the authRoute to point directly to google auth instead of pointing to the Just $ AuthR LoginR? It didn't seem super simple since it involved some POST request, but I'm hoping I'm missing something obvious here.


回答1:


You want to redirect to the forwardUrl for Google Email:

Just $ AuthR Yesod.Auth.GoogleEmail.forwardUrl


来源:https://stackoverflow.com/questions/21094784/point-authroute-directly-to-google-auth

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!