package ocsigen-start

Build not yet checked
  1. Overview
  2. Docs
Higher-level library for developing Web and mobile applications with users, registration, notifications, etc

Install

dune-project
 Dependency

Authors

Maintainers

Sources

9.0.0.tar.gz
md5=dfd00a648f0d5f64fcfc893427afc996
sha512=d7c77a9f9b617291ea8c49f4e77fcad8187c39e41d6cb2942ad1c8f45ba620ac261d25a3e75c1b2ce1fd429dad009abb45fab670542e722ab336dc681b99330a

doc/ocsigen-start.server/Os/Current_user/Opt/index.html

Module Current_user.Opt

Instead of exception, the module Opt returns an option.

val get_current_user : unit -> Types.User.t option

get_current_user () returns the current user as a Types.User.t option type. If no user is connected, None is returned.

val get_current_userid : unit -> Types.User.id option

get_current_userid () returns the ID of the current user as an option. If no user is connected, None is returned.