Current Implementation: User tokens should be stored as rows with:
This is the correct way for the system to work - each user token should have its refresh token stored in the same row.
Get New User TokenTest Get Orders
Array
(
[0] => Array
(
[Field] => id
[Type] => int
[Null] => NO
[Key] => PRI
[Default] =>
[Extra] => auto_increment
)
[1] => Array
(
[Field] => type
[Type] => varchar(20)
[Null] => NO
[Key] => MUL
[Default] =>
[Extra] =>
)
[2] => Array
(
[Field] => token
[Type] => text
[Null] => NO
[Key] =>
[Default] =>
[Extra] =>
)
[3] => Array
(
[Field] => refresh_token
[Type] => text
[Null] => YES
[Key] =>
[Default] =>
[Extra] =>
)
[4] => Array
(
[Field] => expires_at
[Type] => datetime
[Null] => NO
[Key] =>
[Default] =>
[Extra] =>
)
[5] => Array
(
[Field] => created_at
[Type] => timestamp
[Null] => YES
[Key] =>
[Default] => CURRENT_TIMESTAMP
[Extra] => DEFAULT_GENERATED
)
[6] => Array
(
[Field] => updated_at
[Type] => timestamp
[Null] => NO
[Key] =>
[Default] => CURRENT_TIMESTAMP
[Extra] => DEFAULT_GENERATED on update CURRENT_TIMESTAMP
)
)