When a user obtains a token via TicketAuth, add them to the known user table; fixes #483
When a user signs in via the TicketAuth request flow, also retrieve their IndieAuth profile; fixes #484
Detailed description
This adds a last_token column to the user table, and updates that when a user obtains a token grant. it also takes advantage of the fact the IndieAuth profile is being fetched as part of parsing out the endpoint, and uses that to update the user's profile.
Developer/user impact
There is a schema change, so a site reindex will take place.
Summary
When a user obtains a token via TicketAuth, add them to the known user table; fixes #483
When a user signs in via the TicketAuth request flow, also retrieve their IndieAuth profile; fixes #484
Detailed description
This adds a
last_token
column to the user table, and updates that when a user obtains a token grant. it also takes advantage of the fact the IndieAuth profile is being fetched as part of parsing out the endpoint, and uses that to update the user's profile.Developer/user impact
There is a schema change, so a site reindex will take place.
Test plan
Got a site to show off?