# App Context

The AppContext is a higher-order component (HOC) that stores global objects and methods used throughout your application, such as:

* user credentials&#x20;
* [authentication methods](https://docs.usegravity.app/gravity-native/authentication) (sign in, authorizeUser, signout)
* [notification banner](https://docs.usegravity.app/gravity-native/components/notification) methods (show, hide)
* [modal](https://docs.usegravity.app/gravity-native/components/modal) methods (show, hide)
* [handling errors](https://docs.usegravity.app/gravity-native/handling-errors)

{% hint style="info" %}
The AppContext is located in **`/components/app`**
{% endhint %}

You can then use any of these methods anywhere in your application by importing the `AppContext` into your components.

```javascript
import { useContext } from 'react';
import { AppContext } from '~/components/lib'

export function Profile(props){

  const context = useContext(AppContext);
  context.handleError(err);

}
```
