gen
This commit is contained in:
parent
41de0864d5
commit
3bc6add51a
4 changed files with 4 additions and 4 deletions
|
|
@ -391,7 +391,7 @@ export default (params: ClientParams) => ({
|
|||
GetNPubLinkingState: async (request: Types.GetNPubLinking): Promise<ResultError | ({ status: 'OK' }& Types.NPubLinking)> => {
|
||||
const auth = await params.retrieveAppAuth()
|
||||
if (auth === null) throw new Error('retrieveAppAuth() returned null')
|
||||
let finalRoute = '/api/app/user/npub/token'
|
||||
let finalRoute = '/api/app/user/npub/state'
|
||||
const { data } = await axios.post(params.baseUrl + finalRoute, request, { headers: { 'authorization': auth } })
|
||||
if (data.status === 'ERROR' && typeof data.reason === 'string') return data
|
||||
if (data.status === 'OK') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue