Skip to Content
This project is in active development. Features and behaviors may change without notice.

use

Type: use(): sauthbase

The use() method is a static function used to retrieve the initialized sauthbase instance.

If it is called before the instance is initialized using sauthbase.init(), an exception will be thrown.


Example Usage

TypeScript
import { } from "sauthbase"; const = .(); .(); // Displays the sauthbase instance

Return Value

  • The sauthbase instance

Notes

  • This method throws Error: SAuthBase has not been initialized. if called before sauthbase.init() has been executed.
  • It is a useful utility for reusing or globally accessing the instance.
Last updated on