Lionel
undesiredmonk
arnmishra
2023-03-14 09:52:34 2023-03-14 16:52:34.972 UTC [129] FATAL: role "doss-username" does not exist 2023-03-14 09:52:39 2023-03-14 16:52:39.086 UTC [131] FATAL: password authentication failed for user "doss-username" 2023-03-14 09:52:39 2023-03-14 16:52:39.086 UTC [131] DETAIL: Role "doss-username" does not exist. 2023-03-14 09:52:39 Connection matched pg_hba.conf line 99: "host all all all md5"
version: '3.8' services: # Database for developers running app locally doss-postgres-local: platform: linux/amd64 container_name: doss-postgres-local image: postgis/postgis:12-3.3 environment: POSTGRES_USER: doss-username POSTGRES_PASSWORD: doss-password POSTGRES_DB: doss-localdb PGDATA: /var/lib/postgresql/data ports: - 5432:5432 networks: - app_network volumes: - doss-localdb:/var/lib/postgresql/data restart: unless-stopped healthcheck: test: ['CMD', 'pg_isready', '-U', 'doss-username'] interval: 5s timeout: 5s retries: 5 cap_add: - NET_ADMIN supertokens: image: registry.supertokens.io/supertokens/supertokens-postgresql:4.4 depends_on: doss-postgres-local: condition: service_healthy ports: - 3567:3567 environment: POSTGRESQL_CONNECTION_URI: 'postgresql://doss-username:doss-password@doss-postgres-local:5432/doss-localdb' networks: - app_network restart: unless-stopped healthcheck: test: > bash -c 'exec 3<>/dev/tcp/127.0.0.1/3567 && echo -e "GET /hello HTTP/1.1\r\nhost: 127.0.0.1:3567\r\nConnection: close\r\n\r\n" >&3 && cat <&3 | grep "Hello"' interval: 10s timeout: 5s retries: 5
ray.npc
oldhack1364
IaS1506
johnmichal4362
/refresh
noraiz7658
soumya0373
import axios from 'axios' import { setupCache } from 'axios-cache-interceptor/dev' export default function ({ $config }, inject) { // Create axios instance const axiosInstance = axios.create({ baseURL: $config.baseURL, }) // Set up caching // Set axios instance to Nuxt context const axiosWithCache = setupCache(axiosInstance, { methods: ['get', 'post'], debug: console.log, }) inject('axiosCache', axiosWithCache) }
dominik_90977
@method_decorator(verify_session(), name='dispatch') class UserIsThirdParty(APIView): def get(self, request: HttpRequest): session: SessionContainer = request.supertokens user_id = session.get_user_id() user = get_user_by_id(user_id) ...
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).