Skip to content

NoAuth and/or noAuthController do not seem to be working #70

@jebricker

Description

@jebricker

In a deployed lambda, I have a single controller set up. I tried both @controllerNoAuth( on the controller) and @noauth(on the function) and I get the message Missing Authentication Token on the call. I even tried it with both decorators.

`import { injectable } from "inversify";
import { apiController,GET, controllerNoAuth,noAuth} from "ts-lambda-api";
import {getAllDosageForms} from '../dosageFormList_h';

@APIController("dossagelisttest")
@Injectable()
export class DosageFormListController {
@get("/getalldosageforms")
@noauth
public async getAllDossageForms(){
console.log('get all dosage forms TS router');
return await getAllDosageForms();
}
}`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions