Masahiro's tech note
PostsProjectsAbout
PostsProjectsAbout
Backback arrow icon
Android
Flutter
iOS
Ruby on Rails

devise token authのexpiryをflutterで使う

expiryをflutterで使う場合は、castしてこんな感じで利用します

new DateTime.fromMillisecondsSinceEpoch(int.parse(response.headers['expiry']) * 1000)

参考記事

Dart/Flutter : Converting timestamp

Featured
Flutterにcloud_firestore導入したらAMSupportURLConnectionDelegate is implemented in bothが出た
2022/08/04
Firebase
Flutter
Swift
Xcode
Xcodeで実機デバッグ試すとThis operation can fail if the version of the OS on the device is incompatible…と出る
2022/07/10
iOS
Swift
未分類
XcodeでimageLiteralが出てこない
2022/07/10
iOS
Swift
未分類

github
twitter
menta
mail
copyright © 2016-2023 Masahiro Okubo