nulab / scala-oauth2-provider

OAuth 2.0 server-side implementation written in Scala

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AccessToken never expires

xring opened this issue · comments

commented

val expiresIn: Option[Long] = expirationTimeInMilis map { expTime =>

the expiresIn will never change after initial.

The reason is from Avoid response where 'expiresIn' could be negative #107
The expires value will fix on creating AccessToken instance.

commented

Got it, that make sense. Thanks @tsuyoshizawa .