Skip to contents

Get token and cross reference against stored data

Usage

get_auth_token(db, token)

Arguments

db

Database connection object

token

Authentication token saved as cookie in browser

Value

If authenticated then return verified userid

Examples

if (FALSE) get_auth_token(db)