new OAuthAdapter($q, osmx2js, options)
Parameters:
Name | Type | Description |
---|---|---|
$q |
Object | angular $q service |
osmx2js |
Object | angular osm service |
options |
Object | set options for the lib https://github.com/osmlab/osm-auth |
- Source:
Methods
-
authenticate()
-
- Source:
Returns:
true/false value- Type
- Promise
-
authenticated()
-
- Source:
Returns:
- Type
- boolean
-
logout()
-
Just logout. Warning this is synchronous code and doesn t return anything.
- Source:
-
options(options)
-
Set the options of the oauth lib
Parameters:
Name Type Description options
Object set options for the lib https://github.com/osmlab/osm-auth - Source:
-
xhr(options)
-
Parameters:
Name Type Description options
Object - Source:
Returns:
http response- Type
- Promise