This commit is contained in:
boufni95 2024-10-17 16:13:29 +00:00
parent 41de0864d5
commit 3bc6add51a
4 changed files with 4 additions and 4 deletions

View file

@ -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') {