AppToken.fromCookies constructor
Constructs an instance of AppToken from a list of Cookies.
Parameters:
cookies
: The list of cookies from which to extract the tokens.
Implementation
AppToken.fromCookies(List<Cookie> cookies)
: accessToken = cookies
.where((cookie) => cookie.name == _accessTokenKey)
.first
.value,
refreshToken = cookies
.where((cookie) => cookie.name == _refreshTokenKey)
.first
.value;