1
0
mirror of https://github.com/nolanlawson/pinafore synced 2025-02-09 16:08:48 +01:00

8 lines
235 B
JavaScript
Raw Normal View History

2018-01-13 14:19:51 -08:00
import { get } from '../ajax'
export function getCurrentUser(instanceName, accessToken) {
let url = `https://${instanceName}/api/v1/accounts/verify_credentials`
return get(url, {
'Authorization': `Bearer ${accessToken}`
})
}