Update login to use new session.create api, which enables email login (close #93) (#119)

This commit is contained in:
Paul Frazee
2023-01-31 10:38:43 -06:00
committed by GitHub
parent 26a4f85fda
commit 9302940a23
4 changed files with 19 additions and 19 deletions
+3 -3
View File
@@ -244,15 +244,15 @@ export class SessionModel {
*/
async login({
service,
handle,
identifier,
password,
}: {
service: string
handle: string
identifier: string
password: string
}) {
const api = AtpApi.service(service)
const res = await api.com.atproto.session.create({handle, password})
const res = await api.com.atproto.session.create({identifier, password})
if (res.data.accessJwt && res.data.refreshJwt) {
this.setState({
service: service,