{"id":18690080,"url":"https://github.com/ottiker/flow-auth","last_synced_at":"2026-06-23T15:32:41.760Z","repository":{"id":14349986,"uuid":"17059573","full_name":"ottiker/flow-auth","owner":"ottiker","description":"Authentication for flow","archived":false,"fork":false,"pushed_at":"2016-11-24T10:15:27.000Z","size":54,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-18T21:35:44.972Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ottiker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-02-21T15:00:55.000Z","updated_at":"2016-07-02T11:11:26.000Z","dependencies_parsed_at":"2022-09-03T08:32:48.181Z","dependency_job_id":null,"html_url":"https://github.com/ottiker/flow-auth","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ottiker/flow-auth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ottiker%2Fflow-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ottiker%2Fflow-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ottiker%2Fflow-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ottiker%2Fflow-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ottiker","download_url":"https://codeload.github.com/ottiker/flow-auth/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ottiker%2Fflow-auth/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34696840,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-23T02:00:07.161Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T10:46:26.197Z","updated_at":"2026-06-23T15:32:41.736Z","avatar_url":"https://github.com/ottiker.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flow Authentication\nAuthentication module for flow.\n### Global config\n```json\n{\n    \"token\": {\n        \"duration\": 600000,\n        \"secret\": \"longRandomString\"\n    },\n    \"session\": {\n        \"cookieName\": \"SES\", \n        \"requestKey\": \"session\",\n        \"secret\": \"longRandomString\", \n        \"duration\": 86400000,\n        \"activeDuration\": 1800000,\n        \"cookie\": {\n            \"ephemeral\": true, \n            \"httpOnly\": true,\n            \"secure\": true\n        }\n    }\n}\n```\n### Flow composition\n```json\n{\n    \"flow\": {\n        \"token.create\": {\n            \"d\": [\n                [\":flow_tools/transform\", {\n                    \"content\": \"{user_email}\"\n                }],\n                \":token.create\"\n            ]\n        },\n        \"token.validate\": {\n            \"d\": [\n                [\":flow_tools/transform\", {\n                    \"token\": \"{token}\"\n                }], \n                \":token.validate\"\n            ]\n        },\n        \"session.get\": {\n            \"d\": [\n                \":session.get\"\n            ]\n        },\n        \"session.set\": {\n            \"d\": [\n                [\":flow_tools/transform\", {\n                    \"user\": \"{user_id}\",\n                    \"role\": \"{user_role}\",\n                    \"lang\": \"{user_lang}\"\n                }]\n                \":session.set\"\n            ]\n        },\n        \"session.destroy\": {\n            \"d\": [\n                \":session.destroy\"\n            ]\n        }\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fottiker%2Fflow-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fottiker%2Fflow-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fottiker%2Fflow-auth/lists"}