# Login to discourse website automatically

**URL:** <https://meta.discourse.org/t/login-to-discourse-website-automatically/125086>\
**Category:** Marketplace\
**Created:** [8월 7, 2019, 4:52오전 UTC](https://meta.discourse.org/t/login-to-discourse-website-automatically/125086 "2019-08-07T04:52:28Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![hosna](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hosna/32/99969_2.png) [@hosna](https://meta.discourse.org/u/hosna)\
**Post date:** [8월 20, 2019, 8:23오전 UTC](https://meta.discourse.org/t/login-to-discourse-website-automatically/125086/4 "2019-08-20T08:23:40Z")

</div>

Yes. I exactly was thinking about this myself. And since the login with email is already done, it should also be possible. Idk about the actual implementation. Maybe it should be done with a plugin. If you can do it, let me know.

> [@angus](#):
>
> That endpoint would have to be protected by authentication. You’d need a way of handling that in your app. Perhaps you have that already?

Yes authentication is done by discourse login api. And there is no problem with it.

> [@angus](#):
>
> Then you’d need to consider things like token expiry. How long should the token remain valid? How do you fetch a new one and update the links once it expires?

does login with email link has expiry value? we can use the same thing or somthing similar.  
Other things like fetching a new token is going to be done by the app itself.

---

_[View the full topic](https://meta.discourse.org/t/login-to-discourse-website-automatically/125086)._
