{"id":18690080,"url":"https://github.com/ottiker/flow-auth","last_synced_at":"2025-11-08T07:30:38.843Z","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":"2024-12-28T02:27:04.284Z","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,"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","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239550283,"owners_count":19657541,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2025-11-08T07:30:38.791Z","avatar_url":"https://github.com/ottiker.png","language":"JavaScript","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","funding_links":[],"categories":[],"sub_categories":[],"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"}