# Forever session with OAuth

**URL:** <https://community.dreamfactory.com/t/forever-session-with-oauth/2923>\
**Category:** Users & Roles\
**Created:** [July 1, 2016, 1:26pm UTC](https://community.dreamfactory.com/t/forever-session-with-oauth/2923 "2016-07-01T13:26:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DamonV](https://avatars.discourse-cdn.com/v4/letter/d/bc8723/32.png) [@DamonV](https://community.dreamfactory.com/u/DamonV)\
**Post date:** [July 1, 2016, 1:26pm UTC](https://community.dreamfactory.com/t/forever-session-with-oauth/2923/1 "2016-07-01T13:26:24Z")

</div>

Hi all.  
Does anybody know how to use forever session with oauth. Suppose my oauth service gives me a forever access token, and I want to get forever token from the Dreamfactory. I read this [https://wiki.dreamfactory.com/DreamFactory/Tutorials/Forever\_sessions](https://wiki.dreamfactory.com/DreamFactory/Tutorials/Forever_sessions) but there is no useful information.

---

<div class="post-metadata">

**Author:** ![DFCommunityManager](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/dfcommunitymanager/32/887_2.png) [@DFCommunityManager](https://community.dreamfactory.com/u/DFCommunityManager)\
**Post date:** [July 1, 2016, 4:19pm UTC](https://community.dreamfactory.com/t/forever-session-with-oauth/2923/2 "2016-07-01T16:19:23Z")

</div>

Hey @DamonV,

Forever sessions are not currently supported with OAuth. You may be able to achieve the same by setting the JWT refresh timer to a really big number.

Thank you,  
@AlexBowen

---

<div class="post-metadata">

**Author:** ![DamonV](https://avatars.discourse-cdn.com/v4/letter/d/bc8723/32.png) [@DamonV](https://community.dreamfactory.com/u/DamonV)\
**Post date:** [July 1, 2016, 4:45pm UTC](https://community.dreamfactory.com/t/forever-session-with-oauth/2923/3 "2016-07-01T16:45:17Z")

</div>

Yeah, I was thinking about a very large JWT\_TTL. But it’s not safe enough.  
Thanks anyway!

---

<div class="post-metadata">

**Author:** ![DFCommunityManager](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/dfcommunitymanager/32/887_2.png) [@DFCommunityManager](https://community.dreamfactory.com/u/DFCommunityManager)\
**Post date:** [July 1, 2016, 4:48pm UTC](https://community.dreamfactory.com/t/forever-session-with-oauth/2923/4 "2016-07-01T16:48:41Z")

</div>

Thanks for your post and feedback @DamonV!
