I'm facing issue in accessing private route. Non a...
# help
s
I'm facing issue in accessing private route. Non authenticated routes are working perfectly. I am trying to use token obtained from signin api. Repo for reference: https://github.com/xinhash/sst-go-lang-starter
Copy code
{
  "status": 403,
  "headers": {
    "content-length": "23",
    "content-type": "application/json"
  },
  "body": "{\"message\":\"Forbidden\"}"
}
I'm following this guide: https://serverless-stack.com/chapters/adding-auth-to-our-serverless-app.html#create-a-stack but can't find signInAliases as well
f
Hey @Shubham Sinha, that’s a typo, it meant to say
Copy code
We are using the `login` prop to state that we want our users to login with their email.
Updated the chapter.
s
I'm getting USER_SRP_AUTH is not enabled for the client. My use case is following: 1. Endpoint to create user via API 2. Confirm, SignIn user using API 3. Password reset using API I am able to do all of these via non authenticated routes in https://github.com/xinhash/sst-go-lang-starter Using SignIn API I am able to get tokens access and refresh. But when I'm passing access_token the request isn't getting authenticated. Earlier I had faced an issue https://serverless-stack.slack.com/archives/C01JG3B20RY/p1654344306719819 where I was getting error USER_PASSWORD_AUTH not enabled.
@Frank When I configure auth by following this: https://docs.serverless-stack.com/auth
Copy code
new Api(stack, "Api", {
  authorizers: {
    pool: {
      type: "user_pool",
      userPool: {
        id: auth.userPoolId,
      },
    },
  },
  defaults: {
    authorizer: "pool",
  },
  routes: {
    "GET /": "src/lambda.main",
  },
});
Now I'm getting this error.
Also my login API has stopped working. InvalidParameterException: Missing required parameter SRP_A". Don't know how to generate SRP_A